Shift Lock Mouse Icon is not changing in-game

Hello,
To keep it simple, I have this script in a LocalScript which edits the CursorImage of the ShiftLock.

local player = game.Players.LocalPlayer

--//ShiftLock change
local KEYS = "LeftControl"

local mouseLockController = player
.PlayerScripts
:WaitForChild("PlayerModule")
:WaitForChild("CameraModule")
:WaitForChild("MouseLockController")

local obj = mouseLockController:FindFirstChild("BoundKeys")
if obj then
	obj.Value = KEYS
else
	obj = Instance.new("StringValue")
	obj.Name = "BoundKeys"
	obj.Value = KEYS
	obj.Parent = mouseLockController
end
local obj = mouseLockController:FindFirstChild("CursorImage")
if obj then
	obj.Value = "http://www.roblox.com/asset/?id=9947313248"
else
	obj = Instance.new("StringValue")
	obj.Name = "CursorImage"
	obj.Value = "http://www.roblox.com/asset/?id=9947313248"
	obj.Parent = mouseLockController
end

Everything works perfectly in Studio, however, when I join the actual game, the Mouse Icon does not appear and its just a default mouse cursor.

5 Likes

having the same exact issue, hopefully this get fixed :frowning:

Someone should report it in Bug Report channel as I do not have access to it.

2 Likes