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

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

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

2 comments

0

my response works

0

yeah

1 answer

✓ Accepted answer
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 comment

1

thanks you iuclds

This discussion is preserved as it was. New answers, comments, and votes are closed.