Advertisement
RIPPER0NI

Roblox Heal Pad Script

Jun 3rd, 2017
4,664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local db = false
  2. script.Parent.Touched:connect(function(hit)
  3. if hit.Parent:FindFirstChild("Humanoid") then
  4. if db == false then
  5. if hit.Parent.Humanoid.Health < 100 then
  6. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.MaxHealth
  7. db = true
  8. script.Parent.BrickColor = BrickColor.new("Bright red")
  9. wait(5)
  10. db = false
  11. script.Parent.BrickColor = BrickColor.new("Bright green")
  12. end
  13. end
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement