Trying to make a GUI shop, with an image of my plane, on the GUI. I want to use decals out of my inventory how do I accomplish this?
COMMUNITY QUESTION
How do you make a decal on a GUI text box?
1 answer
To get a decal you just copy the ID of the decal and put it in. For example:
local decalid = 00000 --decal Id here.
script.Parent.Image = "http://www.roblox.com/asset/?id="..decalid
To get a decal of a model or player use this:
--decal of a player
script.Parent.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username=Builderman"--Replace builderman with the player.
--decal of a place
script.Parent.Image = "http://www.roblox.com/Thumbs/Asset.ashx?format=png&width=420&height=230&assetId=2153126"--Replace 2153126 with the place's ID.
--decal of a model
script.Parent.Image = "http://www.roblox.com/Thumbs/Asset.ashx?format=png&width=420&height=230&assetId=21453439"--Replace 214534398 with the model's ID.
Hope this helps!
Decals can only be on ImageLabels or ImageButtons. Not on text buttons.
1 comment
0
Lord, talking about a decal from my personal inventory, placing into a textbox (GUI)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Exactly, I'm still correct. I edited my post. Read it again please.