Hello, Sometimes, When I'm Only One Testing It, It Works Perfect. But When I Do Test With Other "Players" It Doesn't Work, Sometimes Script Does The Simon Part first but it doesn't choose Simon or teleport, Have I Done the End Statements Wrong?
local s = script.Stat
----------------- CountDown---------
t= 0
while true do
t= 10
repeat
t= t-1
s.Value = "Teleporting Players In "..t
wait(1)
until t == 0
---------------- Teleport Players -----------
function teleAll(x, y, z)
local pos = Vector3.new(x, y, z)
for i, plr in pairs(game:GetService("Players"):GetPlayers()) do
if plr.Character and plr.Character.HumanoidRootPart then
plr.Character:MoveTo(pos)
end
end
end
teleAll(201, -11.5, 181.5)
-------------------------------------------------------
wait(3)
t= 6
repeat
t= t-1
s.Value = "Choosing simon in "..t
wait(1)
until t == 0
local simon = game.Players:GetPlayers()
[math.random(1, #game.Players:GetPlayers())]
print("Random player has been chosed")
simonpl = CFrame.new(200, 0.5, 229)
simon.Character:MoveTo(simonpl)
end

1 comment
It Doesn't Work Sir, Still it's the same problem :(