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.