Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2. for _,c in pairs(workspace:children()) do
  3. local hum = c:findFirstChild("Humanoid")
  4. if hum ~= nil then
  5. local head = nil
  6. for _,d in pairs(c:children()) do
  7. if d.className == "Model" and ranged ~= true then
  8. head = d:findFirstChild("Hitbox")
  9. if d.Parent == Character then
  10. break
  11. end
  12. if head ~= nil then
  13. local targ = head.Position - Part.Position
  14. local mag = targ.magnitude
  15. if mag <= magni and c.Name ~= Player.Name then
  16. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  17. ref.Anchored = true
  18. ref.CFrame = cf(head.Position)
  19. game:GetService("Debris"):AddItem(ref, 1)
  20. hitnum = math.random(1, 5)
  21. if hitnum == 1 then
  22. so("199148971", ref, 1, 1)
  23. else
  24. if hitnum == 2 then
  25. so("199149025", ref, 1, 1)
  26. else
  27. if hitnum == 3 then
  28. so("199149072", ref, 1, 1)
  29. else
  30. if hitnum == 4 then
  31. so("199149109", ref, 1, 1)
  32. else
  33. if hitnum == 5 then
  34. so("199149119", ref, 1, 1)
  35. end
  36. end
  37. end
  38. end
  39. end
  40. StaggerHit.Value = true
  41. end
  42. end
  43. end
  44. do
  45. if d.className == "Part" then
  46. head = d
  47. if head ~= nil then
  48. local targ = head.Position - Part.Position
  49. local mag = targ.magnitude
  50. if mag <= magni and c.Name ~= Player.Name then
  51. if stun == nil then
  52. stun = math.random(5, 10)
  53. end
  54. local Rang = nil
  55. if Ranged == false then
  56. Rang = true
  57. end
  58. local stag = nil
  59. if shbash == true then
  60. stag = true
  61. end
  62. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  63. end
  64. end
  65. end
  66. do
  67. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  68.  
  69. end
  70. end
  71. end
  72. end
  73. end
  74. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement