I'm Having A Problem With This Piece Of Code And How Do I Fix It To Make It Execute The Rest Of The Code
" Infinite Yield Possible On ' ServerScriptService:WaitForChild('ModePicker') "
I Marked The Point Of Code Btw
Main = script.Parent.Parent game.Workspace.NumberPlayers.Changed:connect(function() wait(0.5) if game.Workspace.NumberPlayers.Value >= 1 then (HERE -->) game:GetService('ServerScriptService'):WaitForChild("ModePicker") game:GetService('ServerScriptService').ModePicker.Disabled = false game:GetService('SoundService').DrumRoll:Play() Main.PlayerGui.ModePickGUI.RoundShadow:TweenPosition(UDim2.new(0.314,0,0.343,0)) wait(5) local Rand = game.Workspace.Mode.Value Main.PlayerGui.ModePickGUI.RoundShadow.DropShadow.Namez.Text = Rand end end)
Hi Gizmo,
:WaitForChild()
, you need to make sure that the name you add inside the parenthesis is correct and that the child exists under the parent which you use :WaitForChild()
on.Thanks,
Best regards,
~~ KingLoneCat