you should rotate the CharacterBody3D, not the pivot/player.
You can and it is preferable to paste code to the forum directly