when i click the button it doesn't show error but it doesn't put the part into transparency = 0 here is the prefix tool > gui > guibutton > localscript and Union(parts that i was asking to set the transparency when clicked) script: button = script.Parent image = script.Parent.Union visible = false
button.MouseButton1Down:connect(function() if visible == false then image.Transparency = 1 visible = true
else image.Transparency = 0 visible = false end end)
Well, this should help:
The higher the transparency, the more transparent it is.
Transparency 1 = invisible, Transparency 0 = visible