Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to force player to shiftlock? Please help!

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)

1 answer

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)

Where to put it

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:

view source

1

this.ShiftLock = false

Turn false into true

After that go to line 140 there should be a code like this:

view source

1

function this:GetShiftLock()

2

return ShiftLockController:IsShiftLocked()

3

end

Delete that code and paste this on the same line:

view source

1

function this:GetShiftLock()

2

return true

3

end

1 comment

0

There's no CameraScript

This discussion is preserved as it was. New answers, comments, and votes are closed.