How do I enable or disable shiftlock though script?

I don’t mean locking the option to shiftlock; I mean enabling shiftlock as if it were enabled through the left shift key.

1 Like

i said NOT LOCKING THE OPTION TO SHIFTLOCK

1 Like

my brain left me while replying to u sorry

1 Like

this post might have your answer, it looks similar

DId you ever find the answer for this?

You have to call functions in “PlayerModule”, located in game.Players.[player].PlayerScripts.PlayerModule
which is the script that let’s your character walk, spin camera, mobile joystick walk, etc.
It is not in RobloxStudio and Roblox itself adds this script by default to any player that joins.
But if you copy it from client, put it into StarterPlayer.StartPlayerScripts you can directly modify it for your preference.
Have a look at this:

EDIT:
Specifically PlayerModule.CameraModule where shiftlock functionality is.

2 Likes

Thank you so much, have been looking for an answer to this for a while

1 Like