Please tell me why choosing different random people dosent work.? [closed]
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
Marked as Duplicate by AmericanStripes
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?