Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

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

Log in to vote
0
Answered by
Krlos21 45
9 years ago

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

Ad

Answer this question