I'm trying to create a script that, when pressing a button, changes a sort of icon preview image to its respective item. Here's the line of code that does this:
shop.PreviewImage.Image = "http://www.roblox.com/asset/?id=".. icon
Anybody know what I'm doing wrong? Also, "icon" is a series of numbers tostringed from an IntValue.

2 comments
I'm prety sure you just gotta do "rbxassetid://12345" also change the numbers to your ID
You don't type the link you type "rbxassetid://000" and replace the 3 zeros with your images ID. And I'm pretty sure you should be using a localscript for this IF the script is placed under StarterGui