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

How do I force players into shift lock?

Asked by
trecept 367 Moderation Voter
5 years ago

I can't see anything to do with forcing players into shift lock, only third person mode and first person mode. Is there any simple way to enable shift lock by force so players cannot exit shift lock mode?

1
Before I answer, are you going to be using this in a game or are you just generally wondering how to force shift lock? 3ora 54 — 5y
0
I'm using this in a game, and I guess I also wonder about it? lol trecept 367 — 5y
1
devforum have good info on this kind of thing https://devforum.roblox.com/t/shiftlock/148363 User#22604 1 — 5y
1
Theres your answer, hope it helped. 3ora 54 — 5y
0
Thanks! trecept 367 — 5y

1 answer

Log in to vote
1
Answered by
3ora 54
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:

this.ShiftLock = false

Turn false into true

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

function this:GetShiftLock()
return ShiftLockController:IsShiftLocked()
end

Delete that code and paste this on the same line:

function this:GetShiftLock()
return true
end

There you have it. I hope this what you are looking for.

Credits: Reddit Post by AbyssalCry

0
Thank you! trecept 367 — 5y
Ad

Answer this question