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

Do you think this teleport script is going to work or is it valid?

Hi I was making a racing game on ROBLOX. Is the following teleport script valid or at least work? I was not too sure if it was going to work? It needs to be R6 and R15 capable.

Script:

function teleportPlayers(target)
	for _, player in pairs(game.Players:GetChildren())do
		while player.Character == nil do
			wait()
		end
		local character = player.Character
		local torso = character:WaitForChild("UpperTorso")or("Torso")
		torso.CFrame = target.CFrame
	end
end

1 comment

0

no

2 answers

don't use torsos trust me it's a lot better to use HumanoidRootPart because everything is attached to it so it's better to use that.

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