Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I teleport players with a round thingy?

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

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.

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

1 comment

0

tysm!

This discussion is preserved as it was. New answers, comments, and votes are closed.