function onClicked()
script.Parent.Transparency = Transperency.new(0.3)
end
script.Parent.ClickDetector.MouseClick:connect()
✓ ANSWER ACCEPTED
Why won't this script work?
1 answer
✓ Accepted answer
script.Parent.ClickDetector.MouseClick:connect(function ()
script.Parent.Transparency = .3
end)
There you go. +1 please (:
1 comment
0
Thanks, it worked. :D
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Instead of 'Transparency.new(0.3),', just do '(0.3)' because I don't think 'Transparency.new(0.3)' is valid. :P
I tried that and it didn't work. :/