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

My Startup Code Has Been Outdated?

Asked by 5 years ago

-- Define Variables

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ServerStorage = game:GetService("ServerStorage")

local MapsFolder = ServerStorage:WaitForChild("Maps")

local Status = ReplicatedStorage:WaitForChild("Status")

local GameLength = 50

-- Game Loop

while true do

Status.Value = "Waiting for enough players"

repeat waait() 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

wait(2)

end

0
Why do you say that? ForeverBrown 356 — 5y
0
whats "waait()" LoganboyInCO 150 — 5y
0
I am not sure if its outdated or its because of the 3rd line there. waait() needs to be wait() bostaffmanbulgaria1 89 — 5y

1 answer

Log in to vote
0
Answered by
VitroxVox 884 Moderation Voter
5 years ago
repeat waait() until game.Players.NumPlayers >= 2

The "waait()" won't work cause the right way is "wait()"

Ad

Answer this question