Advertisement
Guest User

Fireball script

a guest
Apr 22nd, 2018
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. local enabled = true
  2. Player = script.Parent.Parent
  3. --Player:WaitForDataReady()
  4. mouse = Player:GetMouse()
  5. run = game:GetService("RunService")
  6. function onKeyDown(key)
  7. if not enabled then return end
  8. enabled = false
  9. Key = key:lower()
  10. if key == "z" then
  11. RightShoulder = Player.Character.Torso["Right Shoulder"]
  12. LeftShoulder = Player.Character.Torso["Left Shoulder"]
  13. Run = game:GetService("RunService")
  14. for i = 1, 2 do
  15. for i = 1, 12 do
  16. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  17. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  18. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  19. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  20. Run.Stepped:wait(0.01)
  21. end
  22. for i = 1, 12 do
  23. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  24. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  25. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  26. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  27. Run.Stepped:wait(0.005)
  28. end
  29. end
  30. for i = 1, 12 do
  31. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  32. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  33. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  34. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  35. Run.Stepped:wait(0.005)
  36. end
  37. game:GetService("Chat"):Chat(Player.Character.Head, "Katon Goukyaku no jutsu")
  38. x = Instance.new("Part")
  39. x.BrickColor = BrickColor.new("Bright red")
  40. x.Size = Vector3.new(10, 10, 10)
  41. x.TopSurface = "Smooth"
  42. x.BottomSurface = "Smooth"
  43. x.Shape = "Ball"
  44. x.Name = Player.Name
  45. x.CanCollide = true
  46. x.Transparency = 0
  47. x.Material = "Neon"
  48. fd = script.Firedamage:clone()
  49. fd.Parent = x
  50. y = Instance.new("BodyVelocity")
  51. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  52. y.velocity = Player.Character.Torso.CFrame.lookVector*80
  53. x.Parent = Workspace
  54. y.Parent = x
  55. f = Instance.new("Fire", x)
  56. f.Size = 10
  57. f.Heat = 0
  58. x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -12)
  59. fd.Disabled = false
  60. game.Debris:AddItem(x, 6)
  61. wait(0.25)
  62. for i = 1, 12 do
  63. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  64. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  65. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  66. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  67. Run.Stepped:wait(0.01)
  68. end
  69. end
  70. wait(2)
  71. enabled = true
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement