Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I teleport every player in the game to (a) specific location(s) after a timer is up? [closed]

Asked by 4 years ago

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.

Closed as Not Constructive by JakyeRU and hiimgoodpack

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
haba_nero 386 Moderation Voter
4 years ago

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

0
Tan mexicano! 'TheLastHabanero', jaja. Foxy_Developer 111 — 4y
Ad
Log in to vote
-1
Answered by 4 years ago
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.

0
You dont do it this way vincentthecat1 199 — 4y
0
You put the script in the question itself vincentthecat1 199 — 4y