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

HumanoidRootPart not teleporting the player or is this a bug?

Asked by 3 years ago

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

0
Please post your code, since we can't do much without it. kingblaze_1000 359 — 3y
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) WizyTheNinja 834 — 3y

1 answer

Log in to vote
0
Answered by
P_4rio 30
3 years ago
Edited 3 years ago

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))
Ad

Answer this question