How do I gradually turn the player to face a certain direction when I press a key?

I am trying to make a script that turns the player to face a brick

I’ve searched up a lot of sources on devForum but they all turn the player immediately instead of gradually turning the player

How would I go about writing this script?

You could Lerp the orientation to make the Player (or NPC, Part, any object with an orientation) to a CFrame faceto value. Just going off stuff in my head so you would have to do some digging and debugging and factchecking.

For pressing a key you can use UserInputService and for gradually turn the players head, you can use TweenService.