How do I override shift lock to be able to rotate the character freely regardless of where the mouse/camera looks?
For example, I want to have the character be able to automatically rotate to nearby humanoids when using combat to allow aim assist in a way. It works flawlessly without shift lock, but since the character always aims at the mouse it doesn’t work with it. Is there a way around this?
I assume disabling shift lock, changing the characters rotation, and enabling it would in theory be the easiest way but it might not work at all and seems inefficient long term.
Any help would be appreciated. And for rotation I’m using a basic CFrame script like the one below:
I would just not use shift lock, and just make a mouse GUI.
This gui would stay at the center of the screen and would be used as the correct position to fire from.
The game we’re working on mainly focuses on using a shoulder cam with a locked mouse position to allow for easier movement, so I’d like to keep it enabled or just make a custom camera system if truly needed
A locked position is going to rotate the player?
Or do you mean that the cam just stays behind the player?
If you mean the cam stay behind the player, thats actually pretty easy you can set Camera.CameraType to Enum.CameraType.Scriptable
From there I would just copy the code from the default roblox camera controller for mouse lock, without putting in the part that controls player direction.