Guest User

Untitled

a guest
Sep 7th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local debounce = false
  2. local pad = script.Parent
  3.  
  4. pad.Touched:Connect(function(hit)
  5.     if hit.Parent:FindFirstChild("Humanoid") then
  6.         if not debounce then
  7.             debounce = true
  8.                 if hit.Parent.Humanoid.Health ~= hit.Parent.Humanoid.MaxHealth then
  9.                     hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health + 20
  10.                 end
  11.             wait(1)
  12.             debounce = false
  13.         end
  14.     end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment