Advertisement
zomio15

fireball scrit

Sep 9th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. :ls --Created by mpk5lmao-- fire ball script.
  2. local enabled = true
  3. Player = script.Parent.Parent
  4. --Player:WaitForDataReady()
  5. mouse = Player:GetMouse()
  6. run = game:GetService("RunService")
  7. function onKeyDown(key)
  8. if not enabled then return end
  9. enabled = false
  10. Key = key:lower()
  11. if key == "z" then
  12. RightShoulder = Player.Character.Torso["Right Shoulder"]
  13. LeftShoulder = Player.Character.Torso["Left Shoulder"]
  14. Run = game:GetService("RunService")
  15. for i = 1, 2 do
  16. for i = 1, 12 do
  17. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  18. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  19. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  20. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  21. Run.Stepped:wait(0.01)
  22. end
  23. for i = 1, 12 do
  24. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  25. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  26. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  27. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  28. Run.Stepped:wait(0.005)
  29. end
  30. end
  31. for i = 1, 12 do
  32. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  33. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  34. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  35. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  36. Run.Stepped:wait(0.005)
  37. end
  38. game:GetService("Chat"):Chat(Player.Character.Head, "Fire Ball")
  39. x = Instance.new("Part")
  40. x.BrickColor = BrickColor.new("Bright red")
  41. x.Size = Vector3.new(15, 15, 15)
  42. x.TopSurface = "Smooth"
  43. x.BottomSurface = "Smooth"
  44. x.Shape = "Ball"
  45. x.Name = Player.Name
  46. x.CanCollide = false
  47. x.Transparency = 0.7
  48. --function a(part)
  49. --local a = part.Parent:FindFirstChild("Humanoid")
  50. --if (a ~= nil) then
  51. --a.Parent:Remove()
  52. --end
  53. --end
  54.  
  55. --x.Touched:connect(a)
  56. --fd = script.Firedamage:clone()
  57. --fd.Parent = x
  58. function onTouched(part)
  59. if part.Parent ~= nil then
  60. local h = part.Parent:findFirstChild("Humanoid")
  61. if h~=nil then
  62. if touch~=1 then
  63. touch=1
  64. wait(0.1)
  65. local place=game.Players:findFirstChild(part.Parent.Name)
  66. if place~=nil then
  67. place:remove()
  68. end
  69. touch=0
  70. end
  71.  
  72. end
  73. end
  74. end
  75.  
  76. x.Touched:connect(onTouched)
  77. y = Instance.new("BodyVelocity")
  78. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  79. y.velocity = Player.Character.Torso.CFrame.lookVector*100
  80. x.Parent = Workspace
  81. y.Parent = x
  82. f = Instance.new("Fire", x)
  83. f.Size = 15
  84. f.Heat = 0
  85. x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -12)
  86. --fd.Disabled = false
  87. game.Debris:AddItem(x, 6)
  88. wait(0.25)
  89. for i = 1, 12 do
  90. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  91. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  92. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  93. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  94. Run.Stepped:wait(0.01)
  95. end
  96. end
  97. wait(2)
  98. enabled = true
  99. end
  100.  
  101. mouse.KeyDown:connect(onKeyDown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement