if function(clicked) then game.Workspace.Part.transparency = 0.5 end
function onClicked(part) game.Workspace.Part.Transparency = 0.5 end script.Parent.ClickDetector.MouseClick:connect(onClicked)