function onClicked() script.Parent.Transparency = Transperency.new(0.3) end script.Parent.ClickDetector.MouseClick:connect()
script.Parent.ClickDetector.MouseClick:connect(function () script.Parent.Transparency = .3 end)
There you go. +1 please (: