Setting a player's rotation (facing direction)?
Has anyone figured out how to do this? Basically something like player.Teleport, but to set player.transform.rotation and actually apply it on the client-side to change where the player is facing.
Update: I've since learned that where the player is looking is not player.transform.rotation, but rather player.GetNetworkRotation(). It returns a value based on player.viewAngles and I've verified that it changes based on where you look. So the more correct question to ask is:

When I change player.viewAngles for a human player, is there any way to sync that change to the client so that the player turns to face another direction? I don't mean turning the head, but the whole body.

I think you cant change player rotation since its client side

The way people have typically done this is to spawn a helicopter pilot seat facing the direction you want, mount the player in that seat, then dismount the player and destroy the seat. If you intend to do this often, to improve performance, you can cache the seat or a pool of seats instead of constantly creating and destroying them.