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

How do I change the key for shiftlock?

I have a shift to run but it overlaps with shiftlock and i want it to change a different key.

2 comments

0

but its called shiftlock for a reason

0

you could change the sprint to a different key or just disable shift lock in that game

1 answer

It's actually really easy

  1. Test your game in studio ==========================

It can be an empty baseplate, or it can be your actual game

  1. Copy PlayerModule ==========================

PlayerModule is located in the Explorer under StarterPlayer > StarterPlayerScripts

  1. Stop testing ==========================

What I like to do is press Alt+F4, and boot up studio again.

  1. Paste PlayerModule into StarterPlayerScripts ==========================

Put the PlayerModule back where you found it

  1. Open MouseLockController ==========================

MouseLockController would be located at StarterPlayer > StarterPlayerScripts > PlayerModule > MouseLockController

  1. 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

  1. Edit the line ==========================

You should see

self.boundKeys = {Enum.KeyCode.LeftShift, Enum.KeyCode.RightShift}

Change that to whatever you like. All KeyCodes here.

  1. 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

  1. 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.