i'm making a script where when i click on a bed, the player's torso position moves to a certain brick's position on the bed but i also want the player to have the same rotation as the brick but it wont work, the player is always facing the same direction.
here is the line
player.Character.Torso.CFrame = CFrame.new(Vector3.new(t.Position.x, t.Position.y, t.Position.z))CFrame.Angles(t.Rotation.x, t.Rotation.y, t.Rotation.z)
i tried a lot of methods to find the rotation but most of them were creating errors.
Also i make sure the player gets anchored when he moves to the position

1 comment
well, thanks it did work in fact XD guess im just dumb!