1xayd
(1xayd)
August 24, 2024, 5:25am
1
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
1xayd
(1xayd)
August 24, 2024, 5:47am
3
i said NOT LOCKING THE OPTION TO SHIFTLOCK
1 Like
hiEdwardd
(edward)
August 24, 2024, 11:50am
4
my brain left me while replying to u sorry
1 Like
this post might have your answer, it looks similar
For a while now I’ve been meaning to force shift lock for my 3rd person game.Though I did find some ways to do this, they weren’t very efficient because I can’t find any methods to force it and stop forcing it if I(or the player) ever wanted to interact with the menu UI by pressing M.I know it’s possible to force shift lock in your game because I’ve seen it done in a few games before
(Dragon Ball Final Stand by @SnakeWorl for example) , I just don’t know how exactly to go about it or where to s…
HEMAN_9
(HEMAN_9)
April 13, 2026, 6:20am
6
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:
I skimmed through the entire current version of the PlayerModule hierarchy, and it’s IMPOSSIBLE to do it without overwriting the PlayerModule.
The only way is to change a SINGLE line of code in CameraModule. Simply move CameraModule.new() to where return is, exactly as shown in the screenshot.
[image]
Then you can set the shiftlock state using the CameraModule’s MouselockController & manually update it visually & functionally.
-- You can copy+paste all of this to a LocalScript.
local player…
EDIT:
Specifically PlayerModule.CameraModule where shiftlock functionality is.
2 Likes
HEMAN_9
(HEMAN_9)
April 16, 2026, 7:46pm
8
Ulmish:
hich 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 defau
Thank you so much, have been looking for an answer to this for a while
1 Like