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

Cursor won't change?

Asked by 8 years ago

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

Log in to vote
1
Answered by
XAXA 1569 Moderation Voter
8 years ago

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.

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 MariusAurelius 85 — 8y
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. XAXA 1569 — 8y
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. XAXA 1569 — 8y
Ad
Log in to vote
-2
Answered by 8 years ago

-_-.

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

0
W002: Global 'Game' is deprecated, use 'game' instead MariusAurelius 85 — 8y
0
No, game or Game does not matter. It will work either way. alphawolvess 1784 — 8y

Answer this question