Why is my code only working half the time

Just checking, did you set the rotation on the player, or using SetControlRotation?