How to achieve "Right-click" camera follow effect?

hey scripters! i’ve been trying to make a camera system for my game and i really like the camera system in games like genshin impact where the character and the camera follow/turn to the mouse. you can achieve the same effect in roblox by right clicking like shown here:

https://gyazo.com/da4c71c09b43b37403303d1016d0dd85 (sorry for link, i cannot record using OBS at the moment)

is there a way to achieve this? some sort of cameramode i am unaware of? i have already tried locking the camera behind the player and then rotating the humanoidrootpart towards the mouse but it doesnt look or flow as nicely as i would like it to. any information is appreciated!

edit: i am aware shift lock gives the same effect but i do not want the character to be able to “walk sideways”/strafe in a sort but always have them facing the direction they are walking

1 Like

Isn’t this the same behavior as shift lock?
I think this thread may yield insight.

1 Like

that looks like it should do the trick. thanks for finding that for me, i couldnt get the wording right!

1 Like