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

I dunno this kind of Property?

Asked by 10 years ago

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
0
I tried this but it returns an error <:( pls help me!!! RanBlox04 30 — 10y
0
print(game.Players.NumPlayers), same as print(#game.Players:GetPlayers()) Azarth 3141 — 10y

2 answers

Log in to vote
0
Answered by
dyler3 1510 Moderation Voter
10 years ago

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.

0
Read-only, not locked. Articulating 1335 — 10y
Ad
Log in to vote
0
Answered by 10 years ago
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

Answer this question