Hello community, this script is about teleporting only the player, who counts down until he teleports, but it doesn’t work for me and I don’t have any error in the output, who can help me, please?
game.Players.PlayerAdded:Connect(function()
local msg = game.ReplicatedStorage.RoundMessage
wait(2)
for i = 35,0,-1 do
msg.Value = "💥 Play At "..i
wait(1)
if i == 0 then
print('Intermission Finished')
local part = game.Workspace.Zone
for _, player in ipairs(game.Players.LocalPlayer.LocalPlayer)do
player.Character:MoveTo(part.Position)
wait(0)
local msg = game.ReplicatedStorage.LobbyMessage
wait(2)
local part2 = game.Workspace.Zone2
for _, player in ipairs(game.Players.LocalPlayer.LocalPlayer) do
player.Character:MoveTo(part2.Position)
end
end
end
end
end)
game.Players.PlayerAdded:Connect(function()
local msg = game.ReplicatedStorage.RoundMessage
wait(2)
for i = 35,0,-1 do -- Cambia el 5 por el tiempo que quieres que dure la intermission hacia el juego
msg.Value = "💥 Play At "..i
wait(1)
if i == 0 then
print('Intermission Finished')
local part = game.Workspace.Zone --Cambia el 'Zone' por el nombre de su bloque
for _, player in ipairs(game.Players.LocalPlayer)do
print('YeahOne')
player.Character.HumanoidRootPart.Position = part.Position
wait(0)
local msg = game.ReplicatedStorage.LobbyMessage
wait(2)
local part2 = game.Workspace.Zone2 --Cambia el 'Zone2' por el nombre de su bloque
for _, player in ipairs(game.Players.LocalPlayer) do
print('YeahTwo')
player.Character.HumanoidRootPart.Position = part2.Position
end
end
end
end
end)
game:GetService("Players").PlayerAdded:Connect(function(player)
local msg = game.ReplicatedStorage.RoundMessage
wait(2)
for i = 35,0,-1 do
msg.Value = "💥 Play At "..i
wait(1)
if i == 0 then
print('Intermission Finished')
local part = game.Workspace.Zone
print('YeahOne')
player.Character.HumanoidRootPart.Position = part.Position
wait(0)
local msg = game.ReplicatedStorage.LobbyMessage
wait(2)
end
end
end)