If I Click Play In Roblox Studio, It Perfectly Works, But When I Add "Bots" like 3, It Doesn't Work, It Just Happens Nothing, Any Help Pls?
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 -----------
target = CFrame.new(201, -3.5, 181.5)
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character then
player.Character.UpperTorso.CFrame = target
wait(1)
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.HumanoidRootPart.CFrame = simonpl
print("game ended. next game")
end
end
end

3 comments
You are not checking if the player has a character and HumanoidRootPart?
yeah UpperTorso is not a smart way to use CFrame on the character
I Replaced all, Still Doesn't Work.