Disabling Mouse/Shift Lock Icon

I have a custom crosshair and I want to know if there is ANY way to make shift lock or mouse cursor invisible or disable it, because if I make it transparent that wouldn’t work somehow.

Go to starter player, then properties, then disable mouse lock

I’m not trying to disable shfit lock, I’m trying to disable the icon. Basically, Ur in shift lock but there is no icon

There is a way to do it by copying the Player module and pasting it into studio, but this might not be the only/best way

Please refer to this video if you are confused.

1 Like

I tried his transparent one and it worked fine! thanks.

local UserInputService = game:GetService("UserInputService")

local CURSOR_ICON = "rbxasset://textures/Cursors/KeyboardMouse/ArrowFarCursor.png"

UserInputService:GetPropertyChangedSignal("MouseBehavior"):Connect(function()
	if UserInputService.MouseBehavior == Enum.MouseBehavior.LockCenter then
		game.Players.LocalPlayer:GetMouse().Icon = CURSOR_ICON
	end
end)

Setting the icon to the default one every time shift lock activates
EDIT: I know the post is already solved but this can be used as an alternative as inserting an edited default script into the game will prevent it from getting update in the future, if Roblox ever decides to update it

2 Likes