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