Advertisement
Legendofawesomeness3

Balefire

Jun 28th, 2016
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. me = game.Players.LegendOfAwesomeness3
  2.  
  3. if script.Parent.className ~= "HopperBin" then
  4. h = Instance.new("HopperBin",me.Backpack)
  5. h.Name = "Pointless Fire"
  6. script.Parent = h
  7. end
  8.  
  9. sp = script.Parent
  10. eq = false
  11.  
  12. bricka = Instance.new("Part",me.Character)
  13. bricka.formFactor = 0
  14. bricka.Size = Vector3.new(1,1,1)
  15. bricka.CanCollide = false
  16. bricka:BreakJoints()
  17. weld = Instance.new("Weld",me.Character.Torso)
  18. weld.Part0 = weld.Parent
  19. weld.Part1 = bricka
  20. weld.C1 = CFrame.new(-1.5,-0.5,0)
  21.  
  22. rarm = Instance.new("Weld",bricka)
  23. rarm.Part0 = nil
  24. rarm.Part1 = nil
  25. rarm.C1 = CFrame.new(0,0.5,0)
  26.  
  27.  
  28. sp.Selected:connect(function(mouse)
  29. rarm.Part0 = rarm.Parent
  30. rarm.Part1 = me.Character["Right Arm"]
  31. eq = true
  32. coroutine.resume(coroutine.create(function()
  33. while true do
  34. wait()
  35. rarm.C1 = CFrame.fromEulerAnglesXYZ(mouse.Hit.p)
  36. end
  37. end))
  38. mouse.Button1Down:connect(function()
  39. local pos = me.Character.Torso.Position
  40. local pos2 = mouse.Hit.p
  41. for i=10, 300, 10 do
  42. local o = Instance.new("Part",workspace)
  43. o.Size = Vector3.new(1,1,1)
  44. o.Transparency = 1
  45. o.Anchored = true
  46. o.CFrame = CFrame.new(pos, pos2) * CFrame.new(0,0,-i)
  47. o.CanCollide = false
  48. o:BreakJoints()
  49. local f = Instance.new("Fire",o)
  50. f.Size = 24
  51. f.Heat = 7
  52. local pl = game.Players:GetChildren()
  53. for _,v in pairs(pl) do
  54. if (o.Position - v.Character.Torso.Position).magnitude <= 8 then
  55. if v.Character then
  56. v.Character.Humanoid.Health = 0
  57. local d = v.Character:GetChildren()
  58. for i=1, #d do
  59. if d[i].className == "Part" then
  60. d[i].Velocity = Vector3.new(math.random(-70,70),math.random(-70,70),math.random(-70,70))
  61. d[i].RotVelocity = Vector3.new(math.random(-70,70),math.random(-70,70),math.random(-70,70))
  62. end
  63. end
  64. end
  65. end
  66. end
  67. coroutine.resume(coroutine.create(function()
  68. wait(0.2)
  69. f.Enabled = false
  70. wait(0.9)
  71. o:remove()
  72. end))
  73. end
  74. end)
  75. end)
  76.  
  77. sp.Deselected:connect(function()
  78. rarm.Part0 = nil
  79. rarm.Part1 = nil
  80. eq = false
  81. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement