Custom Mouse Cursor Glitch

So I decided to add a custom mouse cursor to my game. Everything worked and I got it right.
Then I also tried to make a custom cursor for a Click Detector but it wont work unless I remove the custom cursor. Does anyone know how to fix that?

It could be that the image you have as your cursor is offset causing it to not be in the place that you think it is. Maybe try having an infinite loop with a delay of 1 or so seconds that sets the cursor to the default and then to yours to see the difference in position. This would also explain why the clickdetector mouse icon isn’t working either.

Perhaps if you provided the code for the custom cursor, we may be able to identify the problem. It is likely that the image of the cursor is not accurate.

1 Like

The code is in a localscript in StarterGui.

local Player = game.Players.LocalPlayer

local Mouse = Player:GetMouse()

Mouse.Icon = β€œhttp://www.roblox.com/asset/?id=6077590002”

1 Like

For some reason when i move my mouse out of the screen then it changes.

1 Like