Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Brick = true
- local Parent = script.Parent
- local function on()
- Brick = true
- Parent.Transparency = 0
- Parent.CanCollide = true
- end
- local function off()
- Brick = false
- Parent.Transparency = 0.10
- Parent.CanCollide = false
- end
- local function OnClicked()
- if Brick == true then off() else on() end
- end
- Parent.ClickDetector.MouseClick:connect(OnClicked)
- on()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement