Feat: Allow requiring zap from edit mode (for Storyboards)#218
Feat: Allow requiring zap from edit mode (for Storyboards)#218EstebenR wants to merge 2 commits intored-blox:0.6.xfrom
Conversation
Studio will return true for RunService:IsServer() in edit mode. For testing components using storyboards, any component that requires the client network module will error. This fix makes it so Zap is allowed to be required while in edit mode even if IsServer returns true
|
IsEdit has plugin security it will error when playing. |
Error how? I currently have this change live in my games and there's no issue |
|
Then you are not requiring from the server in your live game. Since RunService:IsServer() is false the RunService:IsEdit() never runs for you. |
|
Working as intended then? If ClientNetwork were to be required from the server in live it should error anyways, shouldn't it? |
|
Calling IsEdit() outside of a plugin will give this error I think what you want is |
|
Yep you're right. I've tested it and it works for storyboards :D |
Studio will return true for RunService:IsServer() in edit mode. For testing components using storyboards, any component that requires the client network module will error.
This fix makes it so Zap is allowed to be required while in edit mode even if IsServer returns true