Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to force player to shiftlock? Please help!

Asked by
tomekcz 174
5 years ago

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

Log in to vote
0
Answered by 5 years ago

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

0
There's no CameraScript tomekcz 174 — 5y
Ad

Answer this question