Problem with character teleportation

Hello guys.

Quick question I’m trying to teleport a character but when I teleport it the camera stays in the same position it was before the teleportation

What do I need for the camera to remain facing the front after teleportation?

I have not tried anything I am not good at manipulating the camera

1 Like

Hello! if you need help, please be more descrptive, can you put the code so we find any errors?

2 Likes

Try making the camera CFrame equal to the head CFrame:

workspace.CurrentCamera.CFrame = LocalPlayer.Character.Head.CFrame
2 Likes

What are you using to teleport?

Can you please tell us more information about it?

2 Likes

Hello, I had the same problem, instead of setting the HumanoidRootPart’s position I used one of the following functions :

plr.Character:MoveTo(Position)
or
plr.Character:SetPrimaryPartCFrame(CFrame)

1 Like

If you want it to be the regular sort of camera that goes around the player, just do:

workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
1 Like

I don’t have errors I just don’t know how to do the code

I would record a video but my computer records them with very low fps

1 Like

I’m modifying the CFrame of the primary part of the character

1 Like

Thinking a bit I think it is better to put the player in the first person as I put the camera in the first person?

1 Like

usually when someone get tp camera dosent bug, are you using a basic tp script or something more complex?

1 Like

It is very basic and does not give errors also I am not modifying the camera only the primary part

I just have to make the camera face forward or put the player in the first person but I don’t know very well how to manipulate the camera
as I would do it?

1 Like

What I do mostly move the CFrame of UpperTorso(R15) or Torso(R6)

game.Players.destructor4548.Character.UpperTroso.CFrame = game.Workspace.TPPart.CFrame

1 Like

Remember you cannot change the camera on the server if you are, only the client.

1 Like

I had not had time to test but using MoveTo works
thank you very much.

1 Like