Advertisement
Guest User

for Nah.

a guest
Mar 26th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local debounce = false
  2. script.Parent.Anchored = true -- Anchores brick
  3. script.Parent.ClickDetector.MouseClick:Connect(function()
  4.     if debounce == false then
  5.         debounce = true
  6.         script.Parent.Transparency = 1 -- Makes Block Invisible
  7.         script.Parent.CanCollide = false -- Lets Player Walk Through Block
  8.         wait(2) -- Changes how long the block is not visible
  9.         script.Parent.Transparency = 0 -- Makes block visible again
  10.         script.Parent.CanCollide = true -- Players can now touch brick
  11.         debounce = false
  12.     end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement