How do I make an ImageLabel/ImageButton an image from a model I make?
1 | local modelID = 184986053 -- The models Id. |
2 | local pre = "http://www.roblox.com/Thumbs/Asset.ashx?Width=420&Height=420&AssetID=" -- RobloxAssetAPI |
3 | local ModelImage = pre..modelID -- Builds the two strings ^ |
4 | script.Parent.Image = ModelImage -- put this as a (local/nonlocal)script under the button. |
You may also build the string you self
http://www.roblox.com/Thumbs/Asset.ashx?Width=420&Height=420&AssetID=
then you just suffix the ModelID - 184986053
http://www.roblox.com/Thumbs/Asset.ashx?Width=420&Height=420&AssetID=184986053
Then just put that in the decal/ImageGUI