Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.97 KB | None | 0 0
  1. local Tool = script.Parent
  2. local Backpack = Tool.Parent
  3. local Me = Backpack.Parent
  4. local PlayerGui = Me.PlayerGui
  5. local PartStore = workspace:WaitForChild("PartStorage")
  6. local Data = Me:WaitForChild("Data")
  7. local MaVal = PlayerGui.MainGui.MaxKi
  8. local KiVal = PlayerGui.MainGui.Ki
  9. local Character = Me.Character
  10. local Humanoid = Character.Humanoid
  11. local Torso = Character.Torso
  12. local Head = Character.Head
  13. local Neck = Torso.Neck
  14. local RightShoulder = Torso["Right Shoulder"]
  15. local LeftShoulder = Torso["Left Shoulder"]
  16. local RightHip = Torso["Right Hip"]
  17. local LeftHip = Torso["Left Hip"]
  18. local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  19. local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  20. local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  21. local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  22. local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  23. local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  24. local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  25. local LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. local RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  27. local RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. function ChakraWelds()
  29. local TiltX = 0
  30. local TiltY = 0
  31. local TiltZ = 1.57
  32. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  33. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, -TiltZ)
  34. TiltX = 0.6
  35. TiltY = 0
  36. TiltZ = 0
  37. local MoveX = 0
  38. local MoveY = 0
  39. local MoveZ = -0.3
  40. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  41. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  42. TiltX = -0.05
  43. TiltY = 0
  44. TiltZ = 0
  45. MoveX = 0
  46. MoveY = 0.1
  47. MoveZ = 0
  48. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  49. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  50. end
  51. function RefreshWelds()
  52. Neck.C0 = NeckC0
  53. Neck.C1 = NeckC1
  54. RightShoulder.C0 = RightShoulderC0
  55. RightShoulder.C1 = RightShoulderC1
  56. LeftShoulder.C0 = LeftShoulderC0
  57. LeftShoulder.C1 = LeftShoulderC1
  58. RightHip.C0 = RightHipC0
  59. RightHip.C1 = RightHipC1
  60. LeftHip.C0 = LeftHipC0
  61. LeftHip.C1 = LeftHipC1
  62. end
  63. wait(0.1)
  64. local CanRun = true
  65. function onButton1Down(Mouse)
  66. if KiVal.Value < 100 or not CanRun then
  67. return
  68. end
  69. KiVal.Value = KiVal.Value - 100
  70. CanRun = false
  71. Mouse.Icon = "http://www.roblox.com/asset/?id=41672909"
  72. local pos = Mouse.Hit.p
  73. RightShoulder.MaxVelocity = 0
  74. RightShoulder.CurrentAngle = 0
  75. LeftShoulder.MaxVelocity = 0
  76. LeftShoulder.CurrentAngle = 0
  77. local Gyro = Instance.new("BodyGyro", Torso)
  78. Gyro.D = 50
  79. Gyro.CFrame = Torso.CFrame
  80. Gyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  81. local Position = Instance.new("BodyPosition")
  82. Position.Parent = Torso
  83. Position.Position = Torso.Position
  84. Position.MaxForce = Gyro.MaxTorque
  85. game.Debris:AddItem(Position)
  86. game.Debris:AddItem(Gyro)
  87. Humanoid.PlatformStand = true
  88. RefreshWelds()
  89. ChakraWelds()
  90. Gyro.CFrame = CFrame.new(Torso.Position, pos)
  91. Torso.CFrame = CFrame.new(Torso.Position, pos)
  92. local Energy1 = Instance.new("Part")
  93. Energy1.CanCollide = false
  94. Energy1.Anchored = true
  95. Energy1.TopSurface = 0
  96. Energy1.BottomSurface = 0
  97. Energy1.Size = Vector3.new(4, 4, 4)
  98. Energy1.Shape = "Ball"
  99. Energy1.Transparency = 0
  100. Energy1.Material = Enum.Material.Neon
  101. Energy1.BrickColor = BrickColor.Yellow()
  102. local EJoint1 = Instance.new("Weld", Torso)
  103. EJoint1.Part0 = Torso
  104. EJoint1.Part1 = Energy1
  105. EJoint1.C0 = CFrame.new(0, 0.5, -3)
  106. local Light = Instance.new("PointLight", Energy1)
  107. Light.Range = Energy1.Size.X * 8
  108. Light.Color = Energy1.BrickColor.Color
  109. Light.Name = "KiLight"
  110. Energy1.Parent = PartStore
  111. Energy1.Anchored = false
  112. local RayPart = Energy1:Clone()
  113. RayPart.Shape = "Cylinder"
  114. RayPart.BrickColor = BrickColor.Blue()
  115. RayPart.Size = Vector3.new(3.6, 3.6, 3.6)
  116. local Dist = RayPart.Size.Y / 2
  117. RayPart.CFrame = Energy1.CFrame * CFrame.new(0, 0, -Dist) * CFrame.Angles(0, math.rad(90), 0)
  118. RayPart.Anchored = true
  119. RayPart.CanCollide = false
  120. RayPart.Parent = PartStore
  121. Data.Ki.Value = Data.Ki.Value + 10
  122. Data.Attack.Value = Data.Attack.Value + 10
  123. local Hits = 0
  124. RayPart.Touched:connect(function(Hit)
  125. if Hits >= 2 or Hit:isDescendantOf(Character) then
  126. return
  127. end
  128. local Cf = Hit.CFrame
  129. if Hit.Parent:IsA("Hat") then
  130. Hit = Hit.Parent
  131. end
  132. local eHum = Hit.Parent:FindFirstChild("Humanoid")
  133. if eHum and eHum.Health > 0 then
  134. Hits = Hits + 1
  135. eHum:TakeDamage(20 + math.random(0, 5))
  136. if math.random(1, 3) == 1 then
  137. Data.Ki.Value = Data.Ki.Value + 5
  138. Data.Attack.Value = Data.Attack.Value + 5
  139. end
  140. local Boom = game.ReplicatedStorage.Effects.Explosion:Clone()
  141. Boom.Parent = PartStore
  142. Boom.BrickColor = RayPart.BrickColor
  143. Boom.CFrame = Cf
  144. end
  145. end)
  146. game.Debris:AddItem(Energy1)
  147. game.Debris:AddItem(RayPart)
  148. for i = 1, 60 do
  149. RayPart.Size = RayPart.Size + Vector3.new(2.5, -0.015, -0.015)
  150. local Dist = RayPart.Size.X / 2
  151. RayPart.CFrame = Energy1.CFrame * CFrame.new(0, 0, -Dist) * CFrame.Angles(0, math.rad(90), 0)
  152. wait()
  153. end
  154. RayPart:Destroy()
  155. Energy1:Destroy()
  156. Gyro:Destroy()
  157. Position:Destroy()
  158. Humanoid.Jump = true
  159. RefreshWelds()
  160. wait(6)
  161. Mouse.Icon = "http://www.roblox.com/asset/?id=11624732"
  162. CanRun = true
  163. end
  164. function onSelected(Mouse)
  165. if CanRun == true then
  166. Mouse.Icon = "http://www.roblox.com/asset/?id=11624732"
  167. else
  168. Mouse.Icon = "http://www.roblox.com/asset/?id=41672909"
  169. end
  170. Mouse.Button1Down:connect(function()
  171. onButton1Down(Mouse)
  172. end)
  173. end
  174. script.Parent.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement