When i change the image label from a local script in StarterGui in the screengui the image changes but is blank. How do i fix that problem? And yes i own the image

Can we see the script you are using?
yeah sure here:
local ImageLabel = script.Parent:WaitForChild("InventoryGui").Templates.Item.ImageLabel
local ItemName = script.Parent:WaitForChild("InventoryGui").Templates.Item.ItemName
ItemName:GetPropertyChangedSignal("Text"):Connect(function()
print("Check 1")
if string.lower(ItemName.Text) == string.lower("Wood") then
print("Check 2")
ImageLabel.Image = "rbxassetid://6421015660"
end
end)
local ImageLabel = script.Parent:WaitForChild("InventoryGui").Templates.Item.ImageLabel
local ItemName = script.Parent:WaitForChild("InventoryGui").Templates.Item.ItemName
ItemName:GetPropertyChangedSignal("Text"):Connect(function()
print("Check 1")
if string.lower(ItemName.Text) == string.lower(ItemName.Text:match("Wood")) then
print("Check 2")
ImageLabel.Image = "http://www.roblox.com/asset/?id=6421015650"
end
end)
@NotZylon this should work.
its still blank
Does it load when in game?-----
What you’re using is the Decal ID of the image, not its Image ID. They are two different things
I’ve gone ahead and extracted the Image ID for you. This is your new script:
local ImageLabel = script.Parent:WaitForChild("InventoryGui").Templates.Item.ImageLabel
local ItemName = script.Parent:WaitForChild("InventoryGui").Templates.Item.ItemName
ItemName:GetPropertyChangedSignal("Text"):Connect(function()
print("Check 1")
if string.lower(ItemName.Text) == string.lower(ItemName.Text:match("Wood")) then
print("Check 2")
ImageLabel.Image = "http://www.roblox.com/asset/?id=6421015650"
end
end)
Edit: Oops meant to reply to @NotZylon
Are you sure it’s still blank?
still doesn’t work which is strange, its blank
yes its blank
Try this
local ImageLabel = script.Parent:WaitForChild("InventoryGui").Templates.Item.ImageLabel
local ItemName = script.Parent:WaitForChild("InventoryGui").Templates.Item.ItemName
ItemName:GetPropertyChangedSignal("Text"):Connect(function()
print("Check 1")
if string.lower(ItemName.Text) == string.lower(ItemName.Text:match("Wood")) then
print("Check 2")
ImageLabel.Image = "rbxassetid://6421015650"
end
end)
it doesn’t work should i give you edits on the game?
Ok⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Should be fixed now (I fixed). The problem was
string.lower(ItemName.Text)
Need tostring()
on my screen it just shows blank
It only changes when the text changes.
yeah when it changed it still showed blank
Was the text changed by a server script or a local script or yourself?
in a local script
Which one? When I try to get the wood it won’t work.
You must have just copied stuff from the real game onto the test game.