So basically, I have this piece of code:
local desc = game.StarterGui.Collection.Description
desc.ImageLabel.Visible = false
desc.ImageLabel.Image = 1
script.Parent.MouseButton1Down:Connect(function()
desc.Active = true
desc.Visible = true
desc.ImageLabel.Image = script.Parent.Image
desc.ImageLabel.Visible = true
desc.ImageLabel.Active = true
if desc.ImageLabel.Image == script.Parent.Image then
print("Image success!")
else
print("Image failed.")
end
if desc.ImageLabel.Visible == true then
print("Visible success!")
else
print("Visible failed.")
end
end)
And in the Workspace, it's like this:
Collection (ScreenGui) CollectionScreen (Frame) c1 (ImageButton) LocalScript (the piece of code above) Description (Frame) ImageLabel (ImageLabel)
The ScreenGui is in PlayerGui btw.
When I playtest the game, the output says "Image success!" and "Visible success", but has no visual effect. I went into the ImageLabel, and Visible and Active are both true. I tried unticking and reticking them, but it still has no visual effect. Its parent is active and visible too. I have even tried changing the Zindex, but again, doesn't work. It seems to be only viewable in the Editor. Can anybody help? Thanks!

3 comments
This is a LocalScript correct?
Yes.
Also, I tried using a normal Script.