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

Changing ImageLabel image not working?

Asked by
znepb 17
6 years ago
Edited 6 years ago

I have a LocalScript, that will make an image change the image of the ImageLabel but, it is not changing. There is no error saying "Failed to load asset", it isn't just showing up.

Here is what I've tried:

--First thing I tried:
script.Parent.ImageLabel.Image = tostring(id)
-- In the script, before the ID I put "rbxassetid://", and that didn't do anything.

--Second thing I tried:
script.Parent.ImageLabel.Image = "rbxassetid://"..tostring(id)
-- Instead of having rbxassetid:// before the is in the string, I just put in the ID.

--Third thing I tried:
script.Parent.ImageLabel.Image = "https://assetgame.roblox.com/asset/?id="..tostring(id)
--Using the https://assetgame.roblox.com/asset/?id=(id), still didn't work.

Quick edit: the game is FilteringEnabled.

Thanks!

0
have you tried to take 1 from the id? User#5423 17 — 6y
0
Yes, I have tried that. znepb 17 — 6y
0
Try removing the tostring, since it's concatenating a string with an integer it should automatically change the integer to a string. ViktorCorvinus 0 — 6y
0
Still wont work. znepb 17 — 6y

Answer this question