Shift Lock Camera issue

I have this ability thing and there’s a small cutscene when you’re charging up. The issue is that when shiftlock is not on, the cutscene looks fine. But when shiftlock is on the character rotates to where the camera is facing (3/4 angle of the body), instead of facing where it was originally. Is there a way to fix this?

Correct Cutscene (Shiftlock off)

Incorrect cutscene (Shiftlock on)

1 Like

game.StarterPlayer.EnableMouseLockOption = false

Disables mouselock for all players

1 Like

You can also do this in the “StarterPlayer”
image

1 Like

But you can toggle it via a line of code where @thebigreeman explained.

Yes but you cannot temporarily turn it off to my knowledge. If you turn it off it will be permanent

A server-script has the ability to enable it permanently or temporarily and disable it permanently or temporarily as well.

Basic example:

local StarterPlayer = game:GetService("StarterPlayer")

while true do
    StarterPlayer.EnableMouseLockOption = true
    task.wait(5)
    StarterPlayer.EnableMouseLockOption = false
end

I appreciate it, but also It doesn’t work when I specifically toggle the property of starterplayer, but instead I have to toggle the property of the main player

Nevertheless, it works and turns of shiftlock, however the character is still facing the wrong way, so I’ll continue to find a solution

I found a solution
Temporarily disable the Humanoid.AutoRotate property in the script
surprisingly simple but still thanks for the help

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.