Mouse.Icon not working

Hello. Recently tried to make use of Mouse.Icon but it doens’t appear.
At the moment i’ve tried three different icons and they don’t work. Do they need to be a certain size?
I’ve tried with all variants of rbxassetid://, and http://www.roblox.com/asset?id= but nothing seems to work. All that happens is the curser turns invisible.
No errors in console either.

Thanks for any help!

What’s the image you’re trying to use for it?

This one:

https://www.roblox.com/library/1648883000/Hit-Marker

What script have you tried so far?

Did you try to set it to rbxassetid://1648883000 instead of rbxassetid://1648882980?

I’ve tried

mouse.Icon = “https://www.roblox.com/asset?id=1648883000
and
mouse.Icon = “https://www.roblox.com/asset/?id=1648883000
and
mouse.Icon = “rbxassetid://1648883000”

Try to change ID to 1648882980 instead of 1648883000.

I tried both ids on each of the methods in my own Roblox studio and it hasn’t worked. I even tried with an icon they used on the wiki for the example code and that didn’t work for me just now in testing trying to help Galaxy…

You have to use an image label of the hitmarker then put the script in it, then make it so mouse.Icon = script.Parent.Image or whatever contains the image of an image label

You don’t have to do that.

I tried what you said but this happens now, weird

Also, why change it to 1648882980 when the ID on the image is 1648883000???

Mouse.Icon = script.Parent.Image

The id 1648882980 is the one for the image itself, 1648883000 is the id for the item on the catalog.

Also the reason it’s so big is probably because that’s the size of the image when it was uploaded to Roblox.

Also, the reason I said you don’t have to do that, is so it doesn’t add another asset into the game that it has to load and send across the network, which for bigger games can have more of an impact than smaller games.

Because 1648883000 is the asset with raw picture contained in a decal object where 1648882980 is the actual picture.

Oh thanks a lot! I used the same image for a different game and it was a normal size for a crosshair without editing the image. It’s kinda annoying how things change randomly…

Do you know why it is so large? It wasn’t on my other game, didn’t change anything. If it’s just the size then what is the normal size for the cursor if you know.

It’s related to the size of image, a mouse icon’s size is usually 64x64 pixels. The image you’re trying to set to is 420x420.