Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why won't this script work?

function onClicked()
   script.Parent.Transparency = Transperency.new(0.3)
end
 
script.Parent.ClickDetector.MouseClick:connect()

2 comments

0

Instead of 'Transparency.new(0.3),', just do '(0.3)' because I don't think 'Transparency.new(0.3)' is valid. :P

0

I tried that and it didn't 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.