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

This wont work?[SOLVED]

Asked by 10 years ago
if function(clicked) then
game.Workspace.Part.transparency = 0.5
end

1 answer

Log in to vote
2
Answered by 10 years ago
function onClicked(part)
    game.Workspace.Part.Transparency = 0.5
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Ad

Answer this question