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 11 years ago
1if function(clicked) then
2game.Workspace.Part.transparency = 0.5
3end

1 answer

Log in to vote
2
Answered by 11 years ago
1function onClicked(part)
2    game.Workspace.Part.Transparency = 0.5
3end
4 
5script.Parent.ClickDetector.MouseClick:connect(onClicked)
Ad

Answer this question