Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to make a decal have 1 transparecy when parent has it?

Asked by 3 years ago

I need this script for a tycoon button, so whenever the button has 1 transparency, the decal also has it, but it changes when the button is seen.

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago
script.Parent.Parent:GetPropertyChangedSignal("Transparency"):Connect(function()
        script.Parent.Transparency = script.Parent.Parent.Transparency
    end)

Ad

Answer this question