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

How do I force players into shift lock?

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?

5 comments

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?

0

I'm using this in a game, and I guess I also wonder about it? lol

1

devforum have good info on this kind of thing https://devforum.roblox.com/t/shiftlock/148363

1

Theres your answer, hope it helped.

0

Thanks!

1 answer

✓ Accepted 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:

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

1 comment

0

Thank you!

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