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?
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?
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
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)…
thanks, I’ll check it out now. I’ll let you know of the results
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.