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

How would i make a script if there are more than 2 players a loop starts?

local Status = script.Parent.Status
local RepStorage = game.ReplicatedStorage:WaitForChild("Status")


repeat until
game.Players.Player -- here i need help

2 answers

✓ Accepted answer
local Status = script.Parent.Status
local RepStorage = game.ReplicatedStorage:WaitForChild("Status")


repeat until
if #Players:GetPlayers() == 2 then
        --Put script here
    end

Sorry if I incorrectly space the script, I’m on an iPad.

local Status = script.Parent.Status
local RepStorage = game.ReplicatedStorage:WaitForChild("Status")
repeat wait(1) until #game.Players:GetPlayers() >= 2
-- Loop goes here

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