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

how would i teleport a player without changing the way they're facing?

the script i currently use makes me only face a certain way and clip into the ground a little bit

local Position = Vector3.new(4,4,4)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Position, game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.LookVector)

1 answer

Here is the teleport script:

script.Parent.Touched:connect(function(hit) 
 if hit.Parent:FindFirstChild('Humanoid') then 
  hit.Parent.Head.CFrame = CFrame.new(COORDINATION HERE)
 end
end)

-- "COORDINATION HERE" replace to the position that you want to get teleported.

This means just a teleport player with a change player's head, a player head is stuck with the whole body so the limbs will be teleported but not changing the way they're facing.

Simple, right? This is a script that's was 100% working, and the best tutorial I found on Youtube, there's is the best script to teleport instead of using :MoveTo() or anything, it's okay if you use other working scripts, but this is the best recommendation I gave to you.

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