Hi! I am currently making a settings menu that contains checkboxes. I made a simple script so when you click the checkbox ImageButton, it changes it’s image. Here’s that script.
local ImageButton = script.Parent
ImageButton.MouseButton1Click:Connect(function()
ImageButton.Image = "rbxassetid://10089834661"
end)
But for some reason, when I playtest, the entire button just goes away?
Here’s the image it’s supposed to change to, not deleted or anything. - Image
No errors in output.
This could be a pretty easy fix, but I just can’t figure anything out.
Most likely it’s because it’s not an Image Id but rather for decals, try putting that image you sent into an ImageLabel/ImageButton, copying the Image property that it now has and use that instead