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

How do we check if there is more then one player in the game?

local playersin = game.Players:GetChildren()

if playersin < 2 then script.Parent.Parent.TimerTittle.Text = "Waiting For Players" end

but I don't understand whats wrong with this code

1 answer

✓ Accepted answer

You need to put the code into a codeblock for one, but I'm trying to grind, so here you go.

local playersin = game.Players:GetPlayers()
if #playersin < 2 then script.Parent.Parent.TimerTittle.Text = "Waiting For Players" 
end

You needed a # before playersin to get the number. You were almost right, good job! Good luck on your game!

1 comment

0

Omg am so stupid how can I forget something that simple Thank you lol

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