Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My function is not firing properly?

I have a script that is supposed to repeatedly fire two functions. The top one fires once and then doesnt fire the second one. Any help?

repeat
StartRound()
TimerScript()
until (#game.Teams.Spectating:GetPlayers() <= 1)

its supposed to only fire when theres 2 or more players on the "Spectating" team

1 answer

Hello, I am not sure if you meant this, but this might be the fix:


repeat
StartRound()
TimerScript()
until (#game.Teams.Spectating:GetChildren() >=2)

OR


repeat
StartRound()
TimerScript()
until (#game.Teams.Spectating:GetPlayers() >= 2)

Hope this helps!

This discussion is preserved as it was. New answers, comments, and votes are closed.