idk how to force player to use shiftlock by script (enable/disable shiftlock by script)
this line of code don't work game.Players.LocalPlayer.DevEnableMouseLock = true output: The current identity (2) cannot setDevEnableMouseLockOption (lacking permission 5)
Q: How do you force shift lock?
A:First take the CameraScript by joining the game in Roblox Studio and copying the CameraScript located in StarterPlayer>StarterPlayerScripts (in the explorer)
After you copied it stop playing and paste the script in StarterPlayer>StarterPlayerScripts(In the Explorer)
Go in RootCamera Inside the CameraScript
Once you are editing the RootCamera(module script) go to line 127 there should be a code like this:
1
this.ShiftLock
=
false
Turn false into true
After that go to line 140 there should be a code like this:
1
function
this:GetShiftLock()
2
return
ShiftLockController:IsShiftLocked()
3
end
Delete that code and paste this on the same line:
1
function
this:GetShiftLock()
2
return
true
3
end