Ad
Log in to vote
0

Changing ImageLabel image not working?

Asked by
znepb 9
9 months ago
Edited 9 months 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? kingdom5 4031 — 9mo
0
Yes, I have tried that. znepb 9 — 9mo
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 — 9mo
0
Still wont work. znepb 9 — 9mo

Answer this question