Status.Value = "Waiting for enough players"
repeat wait(1) until game.Players.NumPlayers >= 2
Status.Value = "Intermission"
wait(10)
local plrs = {}
for i, player in pairs(game.Players:GetPlayers()) do
if player then
table.insert(plrs,player) -- Add each player into plrs table
end
end
This is a script from youtube. Many people say its not working Well i look up on google and after a long time find out that the NumPlayers doesn't working any more. Can anyone hep me
p/s 5 days old script :V ( i do watch all peasfactory vid for basic still feel like a noob) and sorry for my poor English

5 comments
Status.Value = "Waiting for enough players" local NPlayer = game.Players:GetPlayers() if NPlayer > 2 then wait(1) Status.Value = "Intermission"
I tried to fix on my own,but it says " attempt to compare number with table"
I tried to fix on my own,but it says " attempt to compare number with table"
Btw what " for i = 5, 0, -1 do " use for. @@ sr can u explain to me
It's #game.Players:GetPlayers(). For loop i = start, end, increment by num