Need help with custom cursor

Hello! I am making an update to my game. I was wondering why my cursor isn’t appearing. Instead, the cursor doesn’t show at all.

local cursor = game.Players.LocalPlayer:GetMouse()

cursor.Icon = "rbxassetid://5651952957"

When I play in both, the cursor just doesn’t show. This is in a LocalScript.

If you can help, please let me know. Thanks!

1 Like

I checked the asset and it seems like it has yet to pass moderation. I would wait for the image to pass through moderation and check later. It’s likely invisible because of this.

2 Likes

Ok. I shall wait until it passes moderation.

Looks ready for me :stuck_out_tongue:

https://www.roblox.com/library/5651952957/cursor

Not ready for me.

1 Like

Where is this local script located?

Just wait for it to be fully loaded.

The script is in StarterGUI. It just needs to load because other decals/images load in just fine with those id’s as seen here. Old Roblox cursor:
image

1 Like

So I am pretty sure its not the script. Just wait until its moderated and you shall be good! Hope I could help here!

Question:
How can I make the icon different when I hover over a GUI
Not hovering:
image
Hovering:
image

2 Likes

local cursor = game.Players.LocalPlayer:GetMouse()
Script.Parent.MouseEnter:Connect(function()
cursor.Icon = “rbxassetid://5651952957”
end)

Make sure that you also do a function that’ll fire when the mouse leaves, otherwise you’ll be stuck with the mouse that will have the icon of entering (MouseLeave).

1 Like