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

How can I teleport players with a round thingy?

Asked by 3 years ago

title heres my code

while true do
    wait()
local text = script.Parent
for timer = 30, 0, -1 do 

    text.Text = "Intermission: " .. timer  
    wait(1)
end

for round = 60, 0, -1 do
    text.Text = "Round in progress: " .. round
        wait(1)
        if text.Text == "Round in progress: 0" then
            text.Text = "Round ended!"
            wait(2)
        end
    end
    end

3 answers

Log in to vote
0
Answered by 3 years ago

why does no one help me :(

Ad
Log in to vote
0
Answered by 3 years ago

First reference the humanoid root part of the player then use the :MoveTo() function to move the character to anywhere you want! Inside the parentheses you have to either put a vector 3 value or a variable that references the spawns position or CFrame.

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago

Hey! if you want to teleport everyone, heres a script:

for _, player in pairs(game:GetService("Players"):GetPlayers()) do
    local Character = player.Character or player.CharacterAdded:Wait()
    local HumanoidRootPart = Character.HumanoidRootPart

    HumanoidRootPart.CFrame = CFrame.new(0,0,0) -- Insert your desired Vector3 value here
end
0
tysm! biack1st 5 — 3y

Answer this question