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

Cursor won't change?

My script -

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

It worked with the original script off of the wiki -

local mouse = Game.Players.LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset?id=163023520"

But right when I put in my Asset ID (365499341) nothing happened. Please note that I made the decal yesterday, so it was already approved by the moderators.

2 answers

✓ Accepted answer

The url of the asset you linked to is http://www.roblox.com/Cursor-item?id=365499341. However, the number at the end of this url is not the same as the link to the actual asset.

A rule of thumb is to add 1 to the number to get the actual asset id (in your case, it would be 365499341 + 1 = 365499342). On rare cases, you may have to add 2 or 3, since collisions do happen once in a while. Another way of getting the asset id is to insert the asset first as a Decal on studio, and then get the link to the asset from the decal'sTexture property.

3 comments

1

13:42:07.685 - httpGet http://assetgame.roblox.com/asset?id=365499342 failed. Trying again. Error: HTTP 409 (HTTP/1.1 409 User is not authorized to access Asset.). Elapsed time: 0.121083 13:42:07.790 - Content failed for http://assetgame.roblox.com/asset?id=365499342 because HTTP 409 (HTTP/1.1 409 User is not authorized to access Asset.) 13:42:07.791 - Content failed because HTTP 409 (HTTP/1.1 40

0

Try .. 43 or ..44. If that doesn't work, try doing the second solution I proposed and insert it into studio as a decal.

0

nvm, I just checked and you don't own the asset. Either re-upload the asset yourself or make the asset free and take it.

-_-.

You said game.Players, but it's Game.Players...

2 comments

0

W002: Global 'Game' is deprecated, use 'game' instead

0

No, game or Game does not matter. It will work either way.

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