If possible im looking for a part that serves as a button,when clicked with a mouse a decal on a part should turn from having transparency 1 to 0, and if clicked twice it should come back to normal. I have reserched on youtube and found out how to do this with a part but the decal on the part does not change transparency with it. Could any one help me with this?
You can try something like this:
local Button = script.Parent -- change this to where the button is located local Decal = script.Parent.Parent.Decal -- change this to where the decal is located Button.MouseButton1Down:Connect(function() if Decal.Transparency == 1 then Decal.Transparency = 0 elseif Decal.Transparency == 0 then Decal.Transparency = 1 end end)
Decals don't change transparency with their brick. You have to change the transparency of the decal itself. Just have the path point to the decal's transparency property.