I have a shift to run but it overlaps with shiftlock and i want it to change a different key.
How do I change the key for shiftlock?
1 answer
It's actually really easy
- Test your game in studio ==========================
It can be an empty baseplate, or it can be your actual game
- Copy
PlayerModule==========================
PlayerModule is located in the Explorer under StarterPlayer > StarterPlayerScripts
- Stop testing ==========================
What I like to do is press Alt+F4, and boot up studio again.
- Paste
PlayerModuleintoStarterPlayerScripts==========================
Put the PlayerModule back where you found it
- Open
MouseLockController==========================
MouseLockController would be located at StarterPlayer > StarterPlayerScripts > PlayerModule > MouseLockController
- Go to line 28 of
MouseLockController==========================
If you have a mouse, just put your finger on the middle button and move your elbow backward while applying a small downward force
- Edit the line ==========================
You should see
self.boundKeys = {Enum.KeyCode.LeftShift, Enum.KeyCode.RightShift}
Change that to whatever you like. All KeyCodes here.
- Go to line 41 of
MouseLockController==========================
If you instead have a touchpad, put two fingers (horizontally aligned) on the touchpad and move your elbow forward while applying a small downward force
- Edit the line ==========================
You should see
boundKeysObj.Value = "LeftShift, RightShift"
Change that to whatever you like. All KeyCodes here.
And you're done
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
but its called shiftlock for a reason
you could change the sprint to a different key or just disable shift lock in that game