Log in to vote

Changing ImageLabel image not working?

Asked by 7 days ago
Edited 7 days 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 = ""..tostring(id)
--Using the, still didn't work.

Quick edit: the game is FilteringEnabled.


have you tried to take 1 from the id? kingdom5 3007 — 7d
Yes, I have tried that. MarcoPolo0306 2 — 7d
Try removing the tostring, since it's concatenating a string with an integer it should automatically change the integer to a string. ViktorCorvinus 0 — 7d
Still wont work. MarcoPolo0306 2 — 7d

Answer this question