Advertisement
Guest User

Damage Script

a guest
Feb 23rd, 2020
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local rarm = script.Parent:FindFirstChild("Right Arm")
  2. local larm = script.Parent:FindFirstChild("Left Arm")
  3.  
  4. function dmg(hit)
  5. if hit.Parent ~= nil then
  6. local hum = hit.Parent:findFirstChild("Humanoid")
  7. if hum ~= nil then
  8. hum.Health = hum.Health -10
  9. end
  10. end
  11. end
  12.  
  13. rarm.Touched:connect(dmg)
  14. larm.Touched:connect(dmg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement