Advertisement
Navarone19_CH

Magic stick

Dec 13th, 2019
1,161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. wait()
  2. local animation = Instance.new("Animation")
  3. animation.Parent = workspace
  4. animation.Name = "Right"
  5. animation.AnimationId = "rbxassetid://945586415"
  6. local animation2 = Instance.new("Animation")
  7. animation2.Parent = workspace
  8. animation2.Name = "Left"
  9. animation2.AnimationId = "rbxassetid://945590254"
  10. local KiBlastEventOn = game.ReplicatedStorage.Events.KiBlastEventOn
  11.  
  12.  
  13.  
  14.  
  15. local function KiBlastEvent(Player, mp)
  16. wait()
  17. local animTrack = Player.Character.Humanoid:LoadAnimation(animation)
  18. animTrack:Play()
  19. local eee = script.Sound:Clone()
  20. eee.Parent = workspace
  21. eee:Play()
  22. local x = Instance.new("Part")
  23. x.BrickColor = BrickColor.new("Institutional white")
  24. x.Shape = "Ball"
  25. x.Material = "Neon"
  26. x.Size = Vector3.new(1.75,1.75,1.75)
  27. x.TopSurface = "Smooth"
  28. x.BottomSurface = "Smooth"
  29. x.CanCollide = false
  30. x.Transparency = 0
  31. x.Name = Player.Name
  32. local xx = Instance.new("Part")
  33. xx.BrickColor = BrickColor.new("Cyan")
  34. xx.Shape = "Ball"
  35. xx.Material = "Neon"
  36. xx.Size = Vector3.new(2,2,2)
  37. xx.TopSurface = "Smooth"
  38. xx.BottomSurface = "Smooth"
  39. xx.CanCollide = false
  40. xx.Transparency = .4
  41. xx.Name = Player.Name
  42. x.Touched:connect(function(hit)
  43. if hit.Parent.Name == Player.Name then
  44. print("")
  45. else if hit.Parent:FindFirstChild("Humanoid") then
  46. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-10
  47. end
  48. end
  49. end)
  50. x.CFrame = Player.Character:FindFirstChild("RightHand").CFrame*CFrame.new(0,0,0)
  51. xx.CFrame = Player.Character:FindFirstChild("RightHand").CFrame*CFrame.new(0,0,0)
  52. local pos1 = mp
  53. local direction1 = (pos1 - x.Position).unit
  54. Player.Character.UpperTorso.CFrame = CFrame.new(Player.Character.UpperTorso.Position,pos1)
  55. y = Instance.new("BodyVelocity")
  56. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  57. y.Velocity = direction1 * 100
  58. x.Parent = game.Workspace
  59. xx.Parent = game.Workspace
  60. y.Parent = x
  61. local pos = mp
  62. local direction = (pos - xx.Position).unit
  63. yy = Instance.new("BodyVelocity")
  64. yy.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  65. yy.Velocity = direction * 100
  66. yy.Parent = xx
  67. wait()
  68. end
  69. KiBlastEventOn.OnServerEvent:Connect(KiBlastEvent)
  70.  
  71.  
  72. -- 1 --
  73.  
  74.  
  75. local KiBlastEventOn2 = game.ReplicatedStorage.Events.KiBlastEventOn2
  76.  
  77. local function KiBlastEvent(Player, mp)
  78. wait()
  79. local animTrack = Player.Character.Humanoid:LoadAnimation(animation2)
  80. animTrack:Play()
  81.  
  82. local eee = script.Sound:Clone()
  83. eee.Parent = workspace
  84. eee:Play()
  85. local x = Instance.new("Part")
  86. x.BrickColor = BrickColor.new("Institutional white")
  87. x.Shape = "Ball"
  88. x.Material = "Neon"
  89. x.Size = Vector3.new(1.75,1.75,1.75)
  90. x.TopSurface = "Smooth"
  91. x.BottomSurface = "Smooth"
  92. x.CanCollide = false
  93. x.Transparency = 0
  94. x.Name = Player.Name
  95. local xx = Instance.new("Part")
  96. xx.BrickColor = BrickColor.new("Cyan")
  97. xx.Shape = "Ball"
  98. xx.Material = "Neon"
  99. xx.Size = Vector3.new(2,2,2)
  100. xx.TopSurface = "Smooth"
  101. xx.BottomSurface = "Smooth"
  102. xx.CanCollide = false
  103. xx.Transparency = .4
  104. xx.Name = Player.Name
  105. x.Touched:connect(function(hit)
  106. if hit.Parent.Name == Player.Name then
  107. print("")
  108. else if hit.Parent:FindFirstChild("Humanoid") then
  109. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-10
  110. end
  111. end
  112. end)
  113. x.CFrame = Player.Character:FindFirstChild("LeftHand").CFrame*CFrame.new(0,0,0)
  114. xx.CFrame = Player.Character:FindFirstChild("LeftHand").CFrame*CFrame.new(0,0,0)
  115. local pos1 = mp
  116. local direction1 = (pos1 - x.Position).unit
  117. Player.Character.UpperTorso.CFrame = CFrame.new(Player.Character.UpperTorso.Position,pos1)
  118. y = Instance.new("BodyVelocity")
  119. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  120. y.Velocity = direction1 * 100
  121. x.Parent = game.Workspace
  122. xx.Parent = game.Workspace
  123. y.Parent = x
  124. local pos = mp
  125. local direction = (pos - xx.Position).unit
  126. yy = Instance.new("BodyVelocity")
  127. yy.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  128. yy.Velocity = direction * 100
  129. yy.Parent = xx
  130. wait()
  131. end
  132. KiBlastEventOn2.OnServerEvent:Connect(KiBlastEvent)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement