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

How do you get an item's image in game?

Asked by 8 years ago

I am wondering how to get an item's picture into an ImageLabel. For example, you can get a player's avatar by doing this:

script.Parent.profilepic.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..game.Players.LocalPlayer.Name

How would you do something similar to an item?

0
You need to create an image of the item beforehand, make it a decal, then you can just put that onto the image label theCJarmy7 1293 — 8y
0
Wrong User#6546 35 — 8y
0
Woah! Woah! I created decals for nothing? theCJarmy7 1293 — 8y
0
Woah! Woah! I created decals for nothing? theCJarmy7 1293 — 8y
View all comments (3 more)
0
Woah! Woah! I created decals for nothing? theCJarmy7 1293 — 8y
0
Woah! Woah! I created decals for nothing? theCJarmy7 1293 — 8y
0
Woah! Woah! I created decals for nothing? theCJarmy7 1293 — 8y

1 answer

Log in to vote
1
Answered by
LostPast 253 Moderation Voter
8 years ago

If you understand how to do It you can use this method.

"http://www.roblox.com/Thumbs/Asset.ashx?format=png&width=768&height=432&assetId=136"

the width and height must be a proper width and height for it to work. it differs per item.

Ad

Answer this question