The only kind of Property I don't know much is the NumPlayer Property. So, but I know it's the value of how many players in a game. But how do i use it!! is it like
game.Players.NumPlayer = 4
The only kind of Property I don't know much is the NumPlayer Property. So, but I know it's the value of how many players in a game. But how do i use it!! is it like
game.Players.NumPlayer = 4
Numplayers is a 'locked' property. It changes whenever a player enters or leaves the game. Its just to show how many players are currently in the game.
Read-only, not locked.
while true do
if game.Players.NumPlayers > 1 then
print("Lets start the games")
wait(1)
else
print("Need more players")
wait(1)
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
I tried this but it returns an error <:( pls help me!!!
print(game.Players.NumPlayers), same as print(#game.Players:GetPlayers())