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

How do I fix my code where I am getting the number of players and putting it into a GUI?

Here is my code:


while true do wait(.1)

if game.Players.NumPlayers == 1 then

script.Parent.TextValue.Value = "2 more players are needed"

	else script.Parent.TextValue = "1 more player is needed"
end

end


Please edit this

1 answer

I think that your error is that for every "if" you need an end which you need in your first part of the script

hope this help if not Im sorry

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