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

why my output always say 'Numplayer is not a valid member of Players'?

Asked by 4 years ago

i need help and if you can fix it thanks you so much

while true do

Status.Value = "Waiting for enough player"

repeat wait() until game.Players.Numplayer >= 2

Status.Value = "intermission"

wait(8)

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
0
my response works iuclds 720 — 4y
0
yeah Bllakex335zzGRiff 5 — 4y

1 answer

Log in to vote
0
Answered by
iuclds 720 Moderation Voter
4 years ago
Status.Value = "Waiting for enough player"

repeat wait() until #game.Players:GetPlayers() >= 2

Status.Value = "intermission"

wait(8)

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
1
thanks you iuclds Bllakex335zzGRiff 5 — 4y
Ad

Answer this question