Manually disabling Player shiftlock

Hi, I was wondering if its possible to disable a players shiftlock via script for a cutscene in my game.

if its possible, how could I do this?

1 Like

Sure, firstly be sure that it’s a ServerScript running the code.
It looks something like this :

player = game.Players. -- Your player to remove shiftlock from
player.DevEnableMouseLock = false

it works but the camera still locks on

Yes, this problem actually comes from Roblox itself (How to disable roblox's Shift Lock - #2 by StrongBigeMan9) :

*Note: If a player already had shift lock turned on when this happens, they won’t be able to turn it off until the DevEnableMouseLock property is enabled again.

There’s not much you can do I think :man_shrugging:

1 Like

Oh, okay then. thank you for your time

You can maybe check-out this module : How to Force Enable Shift-Lock (Without changing the PlayerModule)
It seems that you won’t get any problems toggling their shift-lock as they modify the CFrame of the camera (I think)…

2 Likes

thanks, I’ll check it out now. I’ll let you know of the results

1 Like

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