Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Error while replacing mouse icon?

I got this script from yt that is supposed to change the mouse cursor, but it's giving me this error: Image "https://assetdelivery.roblox.com/v1/asset?id=3090499091" failed to load in "Mouse Cursor": Request failed. I don't really know what is the problem, but here is the script:

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "http://roblox.com/asset?id=3090499091"

1 answer

✓ Accepted answer

Try replacing

mouse.Icon = "http://roblox.com/asset?id=3090499091"

with

mouse.Icon = "rbxassetid://3090499091"

Also make sure this is in a local script. If you just uploaded the image it may take a while for it to be approved which may cause the error. Either that or it's an invalid ID. The code you provided should be working fine.

EDIT: So this is because you're trying to set the mouse icon as a decal. You need to set it as an image. Try uploading the image directly into studio via game explorer >images > right click > add asset. Then right-click the uploaded asset under "images" and copy the ID

11 comments

0

It's not giving the error anymore, but the image doesn't show up, let me see if the problem is the crosshair being to small...

0

I tried now a big icon but it started to give the error again, even with your fix. Edit: it worked but it's not showing the icon again.

0

Can you link the image? I'll try it

0

Alright, one second.

0

Oh it's because it's a decal and not an image. Try uploading it as an image

0

Wdym by "image"? Because there is no "Image" tab on the Create tab.

0

Here I'll update the post one second

0

Let me know if you need more help

0

Ok, I'm going to try it.

0

Okay, it actually worked. I placed a imagelabel in rep storage and the image in it from my image folder and set the mouse icon to the .Image property of the imagelabel. Ty,

This discussion is preserved as it was. New answers, comments, and votes are closed.