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