Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debounce = false
- script.Parent.Anchored = true -- Anchores brick
- script.Parent.ClickDetector.MouseClick:Connect(function()
- if debounce == false then
- debounce = true
- script.Parent.Transparency = 1 -- Makes Block Invisible
- script.Parent.CanCollide = false -- Lets Player Walk Through Block
- wait(2) -- Changes how long the block is not visible
- script.Parent.Transparency = 0 -- Makes block visible again
- script.Parent.CanCollide = true -- Players can now touch brick
- debounce = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement