There is a timer in the top left of the player's screen that updates for everyone. It has 10 seconds Intermission time and then the timer is 60 seconds, then it goes back to Intermission. After each intermission time, I want the players to be teleported to a map. Then, after the round is done, I want them to be teleported back to the Intermission area.
COMMUNITY QUESTION
How do I teleport every player in the game to (a) specific location(s) after a timer is up?
2 answers
AlvinBlox Has made a wonderful tutorial on how to make a basic thing like this. First follow this tutorialhttps://www.youtube.com/watch?v=FeVPfVpdyns. Then, make this script:
local Status = game.ReplicatedStorage:FindFirstChild("Status")--Your status value
while true do
for i=10,0,-1 do
Status.Value = tostring("The game will start in"..i.." seconds")
wait(1)
end
Local Teleport = game.Workspace:FindFirstChild("TP")--Write the name of the teleport here
for i, player in pairs(game.Players:GetPlayers()) do
local Char = player.Character:FindFirstChild("HumanoidRootPart")
Char.CFrame = Teleport.CFrame + Vector3.new(0,5,0)
end
for i=60,0,-1 do
Status.Value = tostring("The game will end in "..i.." seconds.")
wait(1)
end
for i, player in pairs(game.Players:GetPlayers()) do
local Char = player.Character:FindFirstChild("Humanoid")
Char.Health = 0
end
end
Hope this helps you in your roblox journeys! -Hab
while true do
local seconds = 60
local poopoo = game.ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("SockMilk")
local function foot()
for i = 1, seconds do
poopoo:FireAllClients(seconds)
seconds = seconds - 1
wait(1)
end
end
poopoo:FireAllClients("Intermission")
wait(10)
foot()
end
I know my variables are weird.
2 comments
0
You dont do it this way
0
You put the script in the question itself
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Tan mexicano! 'TheLastHabanero', jaja.