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

Why won't this script work?

Asked by 10 years ago
function onClicked()
   script.Parent.Transparency = Transperency.new(0.3)
end

script.Parent.ClickDetector.MouseClick:connect()
0
Instead of 'Transparency.new(0.3),', just do '(0.3)' because I don't think 'Transparency.new(0.3)' is valid. :P TheeDeathCaster 2368 — 10y
0
I tried that and it didn't work. :/ masterhalo55 75 — 10y

1 answer

Log in to vote
0
Answered by
lomo0987 250 Moderation Voter
10 years ago
script.Parent.ClickDetector.MouseClick:connect(function ()
   script.Parent.Transparency = .3
end)

There you go. +1 please (:

0
Thanks, it worked. :D masterhalo55 75 — 10y
Ad

Answer this question