My Character Died After Use Teleport

  1. What do you want to achieve?

I want to create a teleport door for the character to teleport over the specific part(Spawn).

  1. What is the issue?

My Character Died After Using that Teleport Door

  1. What solutions have you tried so far?

I Tried to Check the Code Recently

Character:FindFirstChild(“HumanoidRootPart”).CFrame = stage.Parent:FindFirstChild(“Spawn”).CFrame + Vector3.new(2,3,0)

Try Character:MoveTo()
Character.HumanoidRootPart.Position = idk

1 Like

Setting the position could result in join breaks, script breaks or the character dying, updating the CFrame is better.

This part could cause the problem:

stage.Parent:FindFirstChild(“Spawn”).CFrame + Vector3.new(2,3,0)

Adding a CFrame and a Vector3 value together doesn’t work. You have to change the Vector3 to a CFrame value like this:

stage.Parent:FindFirstChild(“Spawn”).CFrame * CFrame.new(Vector3.new(2,3,0))
1 Like

This method works well, thanks.

I will remember that thanks for letting me know that

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.