Advertisement
Guest User

Damage Part Script (Roblox)

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