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

I dunno this kind of Property?

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

2 comments

0

I tried this but it returns an error <:( pls help me!!!

0

print(game.Players.NumPlayers), same as print(#game.Players:GetPlayers())

2 answers

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.

1 comment

0

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.