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

HumanoidRootPart not teleporting the player or is this a bug?

Hi, I am making a teleport script but the HumanoidRootPart is now teleporting the player. Only the HumanoidRootPart is teleporting. For more reference, have a look at this video: https://youtu.be/PqBQdVBNaSw

2 comments

0

Please post your code, since we can't do much without it.

0

Best way to teleport a player is to set the CFrame of their HumanoidRootPart, otherwise it will break joints and not tp whole player. Player.Character.HumanoidRootPart.CFrame = CFrame.new(0,0,0,0) or player.Character.HumanoidRootPart.CFrame = SpawnPart.CFrame (SpawnPart being a part you want them tped to)

1 answer

You are setting only the position value of the HumanoidRootPart and not the entire model use SetPrimaryPartCFrame instead:

PlayerName:SetPrimaryPartCFrame(CFrame.new(x,y,z))

or

PlayerName:SetPrimaryPartCFrame(CFrame.new(PartName.Position))

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