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)

5 comments
when you use the advice someone already gave you on this website, you should at least say thanks or acept the answer, not just use it and ignore
Do you have a script named 'ModePicker' in ServerScriptService? Is this script a local script or server script?
awesomeipad Yes, Its A Server Script
Btw g1o2 I put a comment in the thing you helped me with, sorry about that. I’m kinda new to this website..
Whenever it says infinite yield possible, that just means it hasn't found what you're looking for yet, and it's still looking, so maybe you specified the path wrong, or you just typoed.