I want the player to teleport to a certain area for an animated cutscene facing a certain direction.
However, this is not working, the player is facing a certain direction (the yellow arrow in the photo) instead of the red arrow (in the photo). I have used a decal to make sure what side is the front and have even multiplied the player’s CFrame to the angles of the part so I can align the player with the red arrow. Despite all my solutions I have tried and browsing from similar problems on the forum, I have been unable to finding an answer.
Note that (character) is the variable of game.Players.LocalPlayer.Character and that the code does teleport the player, but not in the way I want it to (aligning it).
Also the player still isn’t facing the right direction when I show this decal that shows the part is facing the direction I want.
Also, if this helps, this is the picture of what the player is facing at. This is a cutscene, I am changing the player’s camera to scriptable and assigning it to a part then tweening it. Because they are in first person, I assign the player’s head’s transparency to 0 to make it still visible, but when I teleport, it is facing this direction instead of what I want it to. Is the manipulation of the camera to the part the reason for this?
sorry for the late reply, but in case this is still needed:
the camera overrides the player’s rotation (assuming you are not using a scriptable camera, but rather found some way of stopping the player from zooming to TPS.)
so what you want is to modify the CFrame of the camera to match the orientation of the player.