Another but longer way is by doing this:
script.parent = button
function onClick
button.Transparency = 0.1
wait(.1)
button.Transparency = 0.2
wait(.1)
button.Transparency = 0.3
wait(.1)
button.Transparency = 0.4
wait(.1)
button.Transparency = 0.5
wait(.1)
button.Transparency = 0.6
wait(.1)
button.Transparency = 0.7
wait(.1)
button.Transparency = 0.8
wait(.1)
button.Transparency = 0.9
wait(.1) button.Transparency = 1
end
button.ClickDetector.MouseClick:connect(onClick)
This is another way to do it if you have a brick fading. Just make sure theres a click detector in button too. This is the way to go if you are a beginer scripter as it shows you some basic functions.
1 comment
wat