Answered by
4 years ago Edited 4 years ago
You have to insert a clickdetector into that part. then you add this script:
01 | local NewPart = game.Workspace [ "New Part" ] |
03 | script.Parent.ClickDetector.MouseClick:Connect( function () |
04 | if NewPart.Transparency = = 0 and NewPart.CanCollide = = true then |
05 | NewPart.Transparency = 1 |
06 | NewPart.CanCollide = false |
07 | elseif NewPart.Transparency = = 1 and NewPart.CanCollide = = false then |
08 | NewPart.Transparency = 0 |
09 | NewPart.CanCollide = true |
You can change "New Part" to whatever you have named that part
PS: I have a question to: look at my account to see it