Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Error while replacing mouse icon?

Asked by 4 years ago

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

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

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

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... User#32819 0 — 4y
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. User#32819 0 — 4y
0
Can you link the image? I'll try it cruizer_snowman 117 — 4y
0
Alright, one second. User#32819 0 — 4y
View all comments (7 more)
0
Oh it's because it's a decal and not an image. Try uploading it as an image cruizer_snowman 117 — 4y
0
Wdym by "image"? Because there is no "Image" tab on the Create tab. User#32819 0 — 4y
0
Here I'll update the post one second cruizer_snowman 117 — 4y
0
Let me know if you need more help cruizer_snowman 117 — 4y
0
Ok, I'm going to try it. User#32819 0 — 4y
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, User#32819 0 — 4y
Ad

Answer this question