Advertisement
StefanBashkir

Lava Example (Bad)

Jul 1st, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local Brick = workspace.Lava
  2. local Debounce = true
  3.  
  4. Brick.Touched:connect(function(Part)
  5.     if (Debounce) then
  6.         Debounce = false
  7.         if (Part.Parent:FindFirstChild("Humanoid")) then
  8.             Part.Parent.Humanoid:TakeDamage(Part.Parent.Humanoid.MaxHealth)
  9.             wait(2)
  10.         end
  11.     Debounce = true
  12.     end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement