How to make an insert image script?

Hey everyone! Basically some time ago I made this script that let’s the player insert a image in the game by only typing its ID in a TextBox.

photovalue.Value = 'rbxassetid://' ..tostring(choosedimg.Text)

It worked fine, but it seems that the format that I used ends up leaving me with a blank image (rbxassetid:// ID HERE), and now, when I manually insert an image ID it looks like this: http://www.roblox.com/asset/?id= ID HERE

I tried just replacing the old format with the new one, but it doesn’t seem to work. So, how could I fix it so it will always insert the image based on its ID?

Odd, “rbxassetid://[num]” is a valid format. How are you serializing it?

1 Like