Infinite Yield On RBLX Servers But Not In Studio?
Asked by
6 years ago Edited 6 years ago
As with everything i do in some way something goes wrong so i need some help to continue progress in my game.
If i take out the WaitForChild then it gives me an error on line 2 but doesn't happen in studio
( The Error Was Saying That The ModeHandler Didn't Exist )
I Know For A Fact I Have Not Done Any Typos
This is the code i used
01 | Main = game:GetService( "Players" ).LocalPlayer |
02 | MP = game:GetService( "ServerScriptService" ):WaitForChild( "ModeHandler" ) |
04 | game.Workspace.NumberPlayers.Changed:connect( function () |
06 | if game.Workspace.NumberPlayers.Value > = 1 then |
07 | Main.PlayerGui.ModePickGUI.RoundShadow.DropShadow.Namez.Text = "?????" |
10 | game:GetService( 'SoundService' ).DrumRoll:Play() |
11 | Main.PlayerGui.ModePickGUI.RoundShadow:TweenPosition(UDim 2. new( 0.314 , 0 , 0.343 , 0 )) |
13 | Main.PlayerGui.ModePickGUI.RoundShadow.DropShadow.Namez.Text = game:GetService( "ServerStorage" ).Mode.Value |
15 | Main.PlayerGui.ModePickGUI.RoundShadow:TweenPosition(UDim 2. new( 0.314 , 0 ,- 1.343 , 0 )) |
16 | script.Disabled = true |