I created an if statement that went like this and is used for a custom inventory button
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Image == "http://www.roblox.com/asset/?id=1333146830" then
script.Parent.Parent.Frame.Visible = true
script.Parent.Parent.Frame.itemname.Text = "AzureSword"
script.Parent.Parent.Frame.item.Image = "http://www.roblox.com/asset/?id=1333146830"
end
end)
when I click on this image button the frame doesnt become visible and nothing happens even when the image is accurate

1 comment
Then the condition isn't met. Check if that value is rbxassetid://1333146830 instead. Print the value of script.Parent.Image before the if-statement to verify