How do I change the shiftlock icon?

I want to change the shiftlock’s icon/crosshair (not the BoundKeys)
I already attempted to playtest my game and then copy paste the ModuleScript, then go over to PlayerModule > CameraModule > MouseLockController
to change this value specifically:

local DEFAULT_MOUSE_LOCK_CURSOR = "rbxasset://textures/MouseLockedCursor.png"

local CONTEXT_ACTION_NAME = "MouseLockSwitchAction"
local MOUSELOCK_ACTION_PRIORITY = Enum.ContextActionPriority.Medium.Value

The first line of code, where I would change this for example to…

local DEFAULT_MOUSE_LOCK_CURSOR = "rbxasset://textures/MouseLockedCursor.png"

to

local DEFAULT_MOUSE_LOCK_CURSOR = "rbxassetid://11783958279"

.
When I change it, the shiflock simply doesn’t work…

2 Likes

Where is the PlayerModule placed at?

The “PlayerModule” is in StarterCharacterScript

The PlayerModule must be placed under StarterPlayerScripts

1 Like

Sorry, I had a long time cropping some parts of the video, here’s a litttle showcase, and the ModuleScript is now in StarterPlayerScripts.
Edit: at the end I am pressing shiftlock.<

Not sure what the problem is now but I assume you can’t get into Shift Lock, you have to activate the Shift Lock Switch in the Setting when you play test

Oh my god I am so stupid! Thanks so much!

1 Like

Ok, now I need to change the shiftlock icon, is there any way to do that?
Capture d’écran 2023-12-26 à 21.20.04

Basically what you did before, changing the mouse icon in the MouseLockController

Very big thank you!
Capture d’écran 2023-12-26 à 21.21.57

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.