Game Works In Roblox But Doesn't Work In Roblox Studio

Firstly I didn’t know which category to put this topic so I am sorry if I made a mistake.

Lets see the case, I am making a obby game and every 5 minutes, a brand new, randomly generated obby appears. I organized every thing and every thing is working finest level.

Also you can play: Randomized Obby

If you play then you can see that game apparently works. But the problem is here, it works on Roblox Player. But I couldn’t develop the game because it is broken in the Roblox Studio.

I tried to clean-install both Roblox Player and Studio. Also the game is up-to-date so both game in Roblox Studio and Roblox is same.

I will put both the videos below so you would watch. I couldn’t upload videos to devforum because of a forbidden error (I forgot to remove the background sound so don’t care about it). I hope we can fix that.

Roblox Studio: Google Drive
Roblox Player: Google Drive

1 Like

For anyone who lives this problem too, I couldn’t fix this problem but I have a solution. Not actual but it is still a solution.

If you add the following line to your script before the error line this would stop the code from continuing if it is in studio.

local RunService = game:GetService("RunService")
if RunService:IsStudio() then return end
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.