Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gear works perfectly in studio but not in game?Same with clickdetector block?

Asked by 6 years ago

So I'm messing around on a test place and I took some scripts from a gear and put it in a custom gear to see if it would work. In the studio game it works perfectly, but in game it only works for me and not my friends if they try to use it, and my grip is turned sideways while they have the normal grip. It's not because of FE, since FE is disabled on the game. The same goes for a block that you click to get a gear; it works for me and no one else.

1 answer

Log in to vote
0
Answered by 6 years ago

Use :WaitForChild

Ex.

game.Workplace:WaitForChild("part")

Because when the script is working in studio everything's loaded but when going to a game everything is loaded and the part loads after the script it can't find it

0
Thank you sm! TiredMelon 405 — 6y
Ad

Answer this question