while wait(2) do
if game.Players.NumPlayers > 0 then
print("Starting")
wait(2)
local x = game.Players:GetChildren()
local choose1 = x[math.random(1, #x)]
choose1.Character.Humanoid.WalkSpeed = 0
choose1.Character.Torso.CFrame = workspace.spawn1.CFrame
choose1.Backpack.InRound.Value = true
print(choose1.Name.." was picked")
wait(2)
for i,v in pairs(game.Players:GetChildren())do
if v.Backpack.InRound.Value == false then
local choosen2 = v[math.random(1, #v)]
print(choosen2.Name)
end
end
end
end
COMMUNITY QUESTION
Please tell me why choosing different random people dosent work.?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Maybe this is helpful https://scriptinghelpers.org/questions/28046/why-are-these-being-used-more-than-once ?