Advertisement
KashTheKingYT

Hurt Script

Jun 11th, 2021
20,451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local debounce = false
  2. script.Parent.Touched:Connect(function(hit)
  3.     if debounce == false then
  4.         debounce = true
  5.         if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
  6.             hit.Parent.Humanoid:TakeDamage(10)
  7.         end
  8.         wait(0.5)
  9.         debounce = false
  10.     end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement