Joriangames

Damage Tool Script

Jun 23rd, 2021 (edited)
3,672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. --[[
  2. Thanks for using this script
  3. This script is made by Joriangames/Problox Studio Scripts
  4. Want to know how to use this and script explanation?
  5. Watch my tutorial: https://youtu.be/ImzV4rS-OMY
  6.  
  7. ]]
  8.  
  9. local debounce = true
  10.  
  11. script.Parent.Touched:Connect(function(hit)
  12.     if hit.Parent:FindFirstChild("Humanoid") then
  13.         if debounce == true then
  14.             debounce = false
  15.             hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -5
  16.             wait(.1)
  17.             debounce = true
  18.         end
  19.     end
  20. end)
Add Comment
Please, Sign In to add comment