Script leaves image blank

So i was working on a update for my game when part of the script did not work. Instead of changing the image of an image label. it would leave it blank and change everything else.

Heres a video of my problem

Heres the code i use

if script.Parent.GameValue.Value == 2 then
		script.Parent.GameName.Text = "MMC Zombie Project"
		script.Parent.GameIcon.Image = "rbxassetid://7344133244"
		script.Parent.GameDesc.Text = "A classic gamemode of Call of Duty: World at War - Zombies in Roblox, with endless waves of survival against never ending hordes."
	end

What am i doing wrong on line 3?

That line should definitely work… does it still not work if you change the image manually in studio? Maybe there’s some GUI overlay issues (maybe it’s hiding behind a white frame or something)?

When I tried to load your image ID into a decal it outputted the error
Image https://assetdelivery.roblox.com/v1/asset?id=7344133244 failed to load. Error 403: Asset type does not match requested type

Are you positive you put the correct ID in line 3?

1 Like

Try this:

if script.Parent.GameValue.Value == 2 then
		script.Parent.GameName.Text = "MMC Zombie Project"
		script.Parent.GameIcon.Image = "rbxassetid://7344133214"
		script.Parent.GameDesc.Text = "A classic gamemode of Call of Duty: World at War - Zombies in Roblox, with endless waves of survival against never ending hordes."
	end

i’ll make sure to check again.

It worked. Thank you very much :slight_smile: