Advertisement
builderman_build

Untitled

Dec 22nd, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.80 KB | None | 0 0
  1. pls = game:GetService("Players")
  2. rs = game:GetService("RunService")
  3. uinps = game:GetService("UserInputService")
  4. lp = pls.LocalPlayer
  5. mouse = lp:GetMouse()
  6. c = lp.Character
  7. human = c.Humanoid
  8. health = 130
  9. root = c.HumanoidRootPart
  10. EfxModel = Instance.new("Model", c)
  11. Effects = {
  12. Spark = {new = function(pos, point, length, thickness, speed, distime, color, trans, material)
  13. local e = Instance.new("Part", EfxModel)
  14. e.Name = "Spark"
  15. e.Size = Vector3.new(thickness, thickness, length + math.random(-10, 10) / 10)
  16. e.BrickColor = BrickColor.new(color or "Black")
  17. if not trans then
  18. e.Transparency = math.random(1, 3) / 10
  19. e.Material = material or "Neon"
  20. e.Anchored = true
  21. e.CanCollide = false
  22. e.CFrame = CFrame.new(pos, point)
  23. local m = Instance.new("SpecialMesh", e)
  24. m.MeshType = "Sphere"
  25. local d = Instance.new("NumberValue", e)
  26. d.Name = "Time"
  27. d.Value = distime or 0.05
  28. local s = Instance.new("NumberValue", e)
  29. s.Name = "Speed"
  30. s.Value = speed or 0.5
  31. end
  32. end, move = function(part)
  33. part.CFrame = part.CFrame:toWorldSpace(CFrame.new(0, 0, part.Speed.Value / (Debounces.FPS / 60)))
  34. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  35. if part.Transparency > 0.97 then
  36. part:Destroy()
  37. end
  38. end}
  39. ,
  40.  
  41. ----------------------------------------------------
  42. z = Instance.new("Sound", Character)
  43. z.SoundId = "rbxassetid://170683647"--
  44. z.Looped = true
  45. z.Pitch = 1
  46. z.Volume = 99999999999999999999999999999999
  47. wait(.1)
  48. z:Play()
  49. ----------------------------------------------------
  50.  
  51. Spark2 = {new = function(pos, point, length, thickness, speed, distime, drop, color, trans, material)
  52. local e = Instance.new("Part", EfxModel)
  53. e.Name = "Spark2"
  54. e.Size = Vector3.new(thickness, thickness, length + math.random(-10, 10) / 10)
  55. e.BrickColor = BrickColor.new(color or "Black")
  56. if not trans then
  57. e.Transparency = math.random(1, 3) / 10
  58. e.Material = material or "Neon"
  59. e.Anchored = true
  60. e.CanCollide = false
  61. e.CFrame = CFrame.new(pos, point)
  62. local m = Instance.new("SpecialMesh", e)
  63. m.MeshType = "Sphere"
  64. local d = Instance.new("NumberValue", e)
  65. d.Name = "Time"
  66. d.Value = distime or 0.05
  67. local s = Instance.new("NumberValue", e)
  68. s.Name = "Speed"
  69. s.Value = speed or 0.5
  70. local d2 = Instance.new("NumberValue", e)
  71. d2.Name = "Drop"
  72. d2.Value = drop or 0.2
  73. end
  74. end, move = function(part)
  75. local moveTo = part.CFrame.lookVector * part.Speed.Value
  76. moveTo = moveTo - Vector3.new(0, part.Drop.Value / Debounces.FPS, 0)
  77. part.CFrame = CFrame.new(part.CFrame.p + (moveTo), part.CFrame.p + (moveTo) * 2)
  78. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  79. if part.Transparency > 0.97 then
  80. part:Destroy()
  81. end
  82. end}
  83. ,
  84. Sphere = {new = function(pos, radius, time, size, color, trans, material)
  85. local e = Instance.new("Part", EfxModel)
  86. e.Name = "Sphere"
  87. e.Size = Vector3.new(radius, radius, radius)
  88. e.BrickColor = BrickColor.new(color or "Black")
  89. if not trans then
  90. e.Transparency = math.random(1, 3) / 10
  91. e.Material = material or "Neon"
  92. e.Anchored = true
  93. e.CanCollide = false
  94. e.CFrame = CFrame.new(pos)
  95. local m = Instance.new("SpecialMesh", e)
  96. m.MeshType = "Sphere"
  97. local d = Instance.new("NumberValue", e)
  98. d.Name = "Time"
  99. d.Value = distime or 0.055
  100. local s = Instance.new("NumberValue", e)
  101. s.Name = "SizeChange"
  102. s.Value = size or 0.5
  103. end
  104. end, move = function(part)
  105. local pcf = part.CFrame
  106. part.Size = part.Size + Vector3.new(part.SizeChange.Value, part.SizeChange.Value, part.SizeChange.Value)
  107. part.CFrame = pcf
  108. part.Transparency = part.Transparency + part.Time.Value
  109. if part.Transparency > 0.95 then
  110. part:Destroy()
  111. end
  112. end}
  113. ,
  114. Fire = {new = function(pos, size, speed, transspeed, wave, color, trans, material)
  115. local e = Instance.new("Part", EfxModel)
  116. e.Name = "Fire"
  117. e.Size = Vector3.new(size, size, size)
  118. e.BrickColor = BrickColor.new(color or "Bright orange")
  119. if not trans then
  120. e.Transparency = math.random(1, 3) / 10
  121. e.Material = material or "Neon"
  122. e.Anchored = true
  123. e.CanCollide = false
  124. e.CFrame = CFrame.new(pos)
  125. local d = Instance.new("NumberValue", e)
  126. d.Name = "Time"
  127. d.Value = transspeed or 0.05
  128. local s = Instance.new("NumberValue", e)
  129. s.Name = "Speed"
  130. s.Value = speed or 0.5
  131. local w = Instance.new("NumberValue", e)
  132. w.Name = "Wave"
  133. w.Value = wave or 0
  134. end
  135. end, move = function(part)
  136. local partPos = part.CFrame.p
  137. part.Size = part.Size - Vector3.new(0.2, 0.2, 0.2)
  138. part.CFrame = CFrame.new(partPos + Vector3.new(math.sin(tick() * part.Wave.Value), part.Speed.Value, math.sin(tick() * part.Wave.Value)).unit / part.Size.x) * CFrame.Angles(math.random(1, 6), math.random(1, 6), math.random(1, 6))
  139. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  140. if part.Transparency > 0.97 then
  141. part:Destroy()
  142. end
  143. end}
  144. }
  145. CEfx = {SparkSphere = function(pos, loopcount, radius, length, thickness, speed, distime, color, trans, material)
  146. for i = 1, loopcount do
  147. Effects.Spark.new(pos + Vector3.new(math.sin(i / loopcount * math.pi * 2), math.abs(math.sin(math.random(0, 50))), math.cos(i / loopcount * math.pi * 2)).unit * radius, pos, length, thickness, speed, distime, color, trans, material)
  148. end
  149. end, Spark2Sphere = function(pos, loopcount, radius, length, thickness, speed, distime, drop, color, trans, material)
  150. for i = 1, loopcount do
  151. local vector = Vector3.new(math.sin(i / loopcount * math.pi * 2), math.abs(math.sin(math.random(0, 50))), math.cos(i / loopcount * math.pi * 2)).unit * radius
  152. Effects.Spark2.new(pos + vector, pos + vector * 2, length, thickness, speed, distime, drop, color, trans, material)
  153. end
  154. end}
  155. Debounces = {FPS = 0, Speed = 1, Combo = 1, ComboTimer = 0, canSpecial = true, canNormal = true, isAttacking = false, isMoving = false, isSprinting = false, isTyping = false}
  156. numLerp = function(start, goal, alpha)
  157. return (goal - start) * alpha + start
  158. end
  159. CFrameZero = function()
  160. return CFrame.new(Vector3.new())
  161. end
  162. rad = function(value)
  163. return math.rad(value)
  164. end
  165. CFAngles = function(Vector)
  166. return CFrame.Angles(rad(Vector.x), rad(Vector.y), rad(Vector.z))
  167. end
  168. AnimStat = {lerpSpeed = 0.2}
  169. Joints = {c.HumanoidRootPart.RootJoint, c.Torso.Neck, c.Torso["Left Shoulder"], c.Torso["Right Shoulder"], c.Torso["Left Hip"], c.Torso["Right Hip"]}
  170. JointTargets = {CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero()}
  171. Combo = {function()
  172. setLerp(0.3)
  173. Debounces.Speed = 0.7
  174. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(1.336, 35.63, -1.865)), CFrame.new(Vector3.new(-1.501, 0.059, -0.59)) * CFAngles(Vector3.new(150.11, -61.307, -0.508)), CFrame.new(Vector3.new(1.239, 0.43, -0.91)) * CFAngles(Vector3.new(92.909, 10.092, -31.545)), CFrame.new(Vector3.new(-0.55, -2.051, -0.081)) * CFAngles(Vector3.new(0.962, 35.736, 0.77)), CFrame.new(Vector3.new(0.869, -1.881, -0.15)) * CFAngles(Vector3.new(-0.82, -20.773, 16.901))})
  175. wait(0.15)
  176. local hit = takeDamage(root.Position, math.random(13, 16), 5, false)
  177. setLerp(0.4)
  178. Debounces.Speed = 1.1
  179. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 65, 0)), CFrame.new(Vector3.new(0.079, 1.5, -0.01)) * CFAngles(Vector3.new(-1.221, -44.109, -2.112)), CFrame.new(Vector3.new(-1.251, 0.189, -0.99)) * CFAngles(Vector3.new(90.281, -49.501, 47.064)), CFrame.new(Vector3.new(1.989, 0.47, -0.4)) * CFAngles(Vector3.new(155.987, -32.162, 72.107)), CFrame.new(Vector3.new(-0.71, -1.991, 0.149)) * CFAngles(Vector3.new(-7.213, 10.172, -12.334)), CFrame.new(Vector3.new(0.51, -1.951, 0.21)) * CFAngles(Vector3.new(-10.342, -20.926, -0.716))})
  180. sound(c.Torso, 280667448, math.random(72, 97) / 100, math.random(85, 115) / 100)
  181. wait(0.17)
  182. return hit[1]
  183. end, function()
  184. setLerp(0.3)
  185. Debounces.Speed = 0.7
  186. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 15, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(-0.157, -15.009, -1.57)), CFrame.new(Vector3.new(-1.621, 0.059, 0.129)) * CFAngles(Vector3.new(25.69, 3.472, -14.641)), CFrame.new(Vector3.new(0.949, 0.239, -0.891)) * CFAngles(Vector3.new(69.388, 5.364, -33.696)), CFrame.new(Vector3.new(-0.8, -1.891, -0.231)) * CFAngles(Vector3.new(-2.542, 16.877, -4.399)), CFrame.new(Vector3.new(0.6, -1.951, 0.13)) * CFAngles(Vector3.new(-8.352, -11.307, 2.56))})
  187. wait(0.15)
  188. local hit = takeDamage(root.Position, math.random(13, 15), 5, false)
  189. setLerp(0.4)
  190. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(3.865, 67.238, -3.921)), CFrame.new(Vector3.new(-2.031, 0.31, -0.211)) * CFAngles(Vector3.new(132.173, -1.906, -79.905)), CFrame.new(Vector3.new(1.499, 0.039, -0.261)) * CFAngles(Vector3.new(43.335, -7.22, 25.135)), CFrame.new(Vector3.new(-0.64, -2.071, -0.031)) * CFAngles(Vector3.new(4.351, 39.697, -5.775)), CFrame.new(Vector3.new(0.6, -1.951, -0.01)) * CFAngles(Vector3.new(-2.073, -25.333, 4.241))})
  191. sound(c.Torso, 280667448, math.random(72, 97) / 100, math.random(85, 115) / 100)
  192. wait(0.17)
  193. return hit[1]
  194. end, function()
  195. setLerp(0.3)
  196. Debounces.Speed = 0.7
  197. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(3.247, 63.159, -3.359)), CFrame.new(Vector3.new(-1.771, 0.1, -0.05)) * CFAngles(Vector3.new(-19.34, -18.625, -40.311)), CFrame.new(Vector3.new(1.659, 0.049, -0.251)) * CFAngles(Vector3.new(2.979, 26.217, 31.923)), CFrame.new(Vector3.new(-0.74, -1.941, -0.081)) * CFAngles(Vector3.new(-1.663, 35.343, -2.91)), CFrame.new(Vector3.new(0.909, -1.881, -0.15)) * CFAngles(Vector3.new(1.355, -27.383, 17.173))})
  198. wait(0.15)
  199. local hit = takeDamage(root.Position, math.random(13, 17), 5, false)
  200. setLerp(0.4)
  201. Debounces.Speed = 1.1
  202. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(75, 75, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(3.247, 63.159, -3.359)), CFrame.new(Vector3.new(-1.771, 0.1, -0.05)) * CFAngles(Vector3.new(-19.34, -18.625, -40.311)), CFrame.new(Vector3.new(1.659, 0.049, -0.251)) * CFAngles(Vector3.new(2.979, 26.217, 31.923)), CFrame.new(Vector3.new(-1.37, -1.531, 0.379)) * CFAngles(Vector3.new(-25.945, 18.839, -46.095)), CFrame.new(Vector3.new(0.909, -1.881, -0.15)) * CFAngles(Vector3.new(1.355, -27.383, 17.173))})
  203. sound(c.Torso, 147722227, math.random(72, 97) / 100, math.random(85, 115) / 100)
  204. wait(0.06)
  205. Effects.Fire.new(c["Right Leg"].Position, 4, 0.5, 0.04, 3, "Bright yellow")
  206. wait(0.08)
  207. return hit[1]
  208. end, function()
  209. setLerp(0.3)
  210. Debounces.Speed = 0.7
  211. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(1.336, 35.63, -1.865)), CFrame.new(Vector3.new(-1.501, 0.059, -0.59)) * CFAngles(Vector3.new(150.11, -61.307, -0.508)), CFrame.new(Vector3.new(1.239, 0.43, -0.91)) * CFAngles(Vector3.new(92.909, 10.092, -31.545)), CFrame.new(Vector3.new(-0.55, -2.051, -0.081)) * CFAngles(Vector3.new(0.962, 35.736, 0.77)), CFrame.new(Vector3.new(0.869, -1.881, -0.15)) * CFAngles(Vector3.new(-0.82, -20.773, 16.901))})
  212. wait(0.15)
  213. local hit = takeDamage(root.Position, math.random(12, 15), 5, false)
  214. setLerp(0.4)
  215. Debounces.Speed = 1.1
  216. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 65, 0)), CFrame.new(Vector3.new(0.079, 1.5, -0.01)) * CFAngles(Vector3.new(-1.221, -44.109, -2.112)), CFrame.new(Vector3.new(-1.251, 0.189, -0.99)) * CFAngles(Vector3.new(90.281, -49.501, 47.064)), CFrame.new(Vector3.new(1.989, 0.47, -0.4)) * CFAngles(Vector3.new(155.987, -32.162, 72.107)), CFrame.new(Vector3.new(-0.71, -1.991, 0.149)) * CFAngles(Vector3.new(-7.213, 10.172, -12.334)), CFrame.new(Vector3.new(0.51, -1.951, 0.21)) * CFAngles(Vector3.new(-10.342, -20.926, -0.716))})
  217. Effects.Fire.new(c["Right Arm"].Position, 4, 0.5, 0.04, 3, "Bright yellow")
  218. CEfx.Spark2Sphere(c["Right Arm"].Position, 15, 4, 8, 0.3, 2, 0.05, 3, "Bright yellow")
  219. sound(c.Torso, 260430079, math.random(72, 97) / 100, math.random(85, 115) / 100)
  220. wait(0.17)
  221. return hit[1]
  222. end, function()
  223. setLerp(0.3)
  224. Debounces.Speed = 0.7
  225. CEfx.SparkSphere(c.Torso.Position, 10, 15, 4, 0.2, -0.8, 0.05, "Bright yellow")
  226. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 15, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(-0.157, -15.009, -1.57)), CFrame.new(Vector3.new(-1.621, 0.059, 0.129)) * CFAngles(Vector3.new(25.69, 3.472, -14.641)), CFrame.new(Vector3.new(0.949, 0.239, -0.891)) * CFAngles(Vector3.new(69.388, 5.364, -33.696)), CFrame.new(Vector3.new(-0.8, -1.891, -0.231)) * CFAngles(Vector3.new(-2.542, 16.877, -4.399)), CFrame.new(Vector3.new(0.6, -1.951, 0.13)) * CFAngles(Vector3.new(-8.352, -11.307, 2.56))})
  227. wait(0.15)
  228. local hit = takeDamage(root.Position, math.random(13, 15), 5, false)
  229. setLerp(0.4)
  230. Debounces.Speed = 1.1
  231. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(3.865, 67.238, -3.921)), CFrame.new(Vector3.new(-2.031, 0.31, -0.211)) * CFAngles(Vector3.new(132.173, -1.906, -79.905)), CFrame.new(Vector3.new(1.499, 0.039, -0.261)) * CFAngles(Vector3.new(43.335, -7.22, 25.135)), CFrame.new(Vector3.new(-0.64, -2.071, -0.031)) * CFAngles(Vector3.new(4.351, 39.697, -5.775)), CFrame.new(Vector3.new(0.6, -1.951, -0.01)) * CFAngles(Vector3.new(-2.073, -25.333, 4.241))})
  232. sound(c.Torso, 147722227, math.random(72, 97) / 100, math.random(85, 115) / 100)
  233. wait(0.17)
  234. return hit[1]
  235. end, function()
  236. setLerp(0.3)
  237. Debounces.Speed = 0.7
  238. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(3.247, 63.159, -3.359)), CFrame.new(Vector3.new(-1.771, 0.1, -0.05)) * CFAngles(Vector3.new(-19.34, -18.625, -40.311)), CFrame.new(Vector3.new(1.659, 0.049, -0.251)) * CFAngles(Vector3.new(2.979, 26.217, 31.923)), CFrame.new(Vector3.new(-0.74, -1.941, -0.081)) * CFAngles(Vector3.new(-1.663, 35.343, -2.91)), CFrame.new(Vector3.new(0.909, -1.881, -0.15)) * CFAngles(Vector3.new(1.355, -27.383, 17.173))})
  239. wait(0.15)
  240. local hit = takeDamage(root.Position, math.random(10, 12), 5, false)
  241. setLerp(0.4)
  242. Debounces.Speed = 1.1
  243. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(75, 75, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(3.247, 63.159, -3.359)), CFrame.new(Vector3.new(-1.771, 0.1, -0.05)) * CFAngles(Vector3.new(-19.34, -18.625, -40.311)), CFrame.new(Vector3.new(1.659, 0.049, -0.251)) * CFAngles(Vector3.new(2.979, 26.217, 31.923)), CFrame.new(Vector3.new(-1.37, -1.531, 0.379)) * CFAngles(Vector3.new(-25.945, 18.839, -46.095)), CFrame.new(Vector3.new(0.909, -1.881, -0.15)) * CFAngles(Vector3.new(1.355, -27.383, 17.173))})
  244. wait(0.06)
  245. Effects.Fire.new(c["Right Leg"].Position, 4, 0.5, 0.04, 3, "Bright yellow")
  246. sound(c.Torso, 260430079, math.random(72, 97) / 100, math.random(105, 115) / 100)
  247. wait(0.08)
  248. return hit[1]
  249. end, function()
  250. Debounces.Speed = 0
  251. setLerp(0.2)
  252. CEfx.SparkSphere(c.Torso.Position, 15, 25, 7, 0.3, -0.6, 0.02, "Bright orange")
  253. sound(c.Torso, 280667448, math.random(47, 72) / 100, math.random(85, 90) / 100)
  254. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(1.336, 35.63, -1.865)), CFrame.new(Vector3.new(-1.501, 0.059, -0.59)) * CFAngles(Vector3.new(150.11, -61.307, -0.508)), CFrame.new(Vector3.new(1.239, 0.43, -0.91)) * CFAngles(Vector3.new(92.909, 10.092, -31.545)), CFrame.new(Vector3.new(-0.55, -2.051, -0.081)) * CFAngles(Vector3.new(0.962, 35.736, 0.77)), CFrame.new(Vector3.new(0.869, -1.881, -0.15)) * CFAngles(Vector3.new(-0.82, -20.773, 16.901))})
  255. wait(0.3)
  256. moveVel(root.CFrame.lookVector, 65, 0.5)
  257. setLerp(0.4)
  258. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 65, 0)), CFrame.new(Vector3.new(0.079, 1.5, -0.01)) * CFAngles(Vector3.new(-1.221, -44.109, -2.112)), CFrame.new(Vector3.new(-1.251, 0.189, -0.99)) * CFAngles(Vector3.new(90.281, -49.501, 47.064)), CFrame.new(Vector3.new(1.989, 0.47, -0.4)) * CFAngles(Vector3.new(155.987, -32.162, 72.107)), CFrame.new(Vector3.new(-0.71, -1.991, 0.149)) * CFAngles(Vector3.new(-7.213, 10.172, -12.334)), CFrame.new(Vector3.new(0.51, -1.951, 0.21)) * CFAngles(Vector3.new(-10.342, -20.926, -0.716))})
  259. sound(c.Torso, 260430117, 1, math.random(95, 115) / 100)
  260. for i = 1, 8 do
  261. wait(0.05)
  262. local hit = takeDamage(root.Position, math.random(5, 7), 5, false)
  263. Effects.Fire.new(c["Right Arm"].Position, 4 + math.random(-10, 10) / 10, 0.5, 0.04, 5 + math.random(1, 4), "Bright yellow")
  264. Effects.Fire.new(c["Right Arm"].Position, 4 + math.random(-10, 10) / 10, 0.5, 0.04, 4 + math.random(1, 4), "Bright orange")
  265. Effects.Fire.new(c["Right Arm"].Position, 4 + math.random(-10, 10) / 10, 0.5, 0.04, 7 + math.random(1, 4), "Bright red")
  266. end
  267. --return hit[1]
  268. end}
  269. prepareCharacter = function()
  270. local animator = c.Humanoid:FindFirstChild("Animator")
  271. if animator then
  272. animator:Destroy()
  273. end
  274. local animate = c:FindFirstChild("Animate")
  275. if animate then
  276. animate:Destroy()
  277. end
  278. for _,x in pairs(Joints) do
  279. x.C1 = CFrameZero()
  280. end
  281. for _,v in pairs(c.Head:children()) do
  282. if v:isA("Sound") then
  283. v:Destroy()
  284. end
  285. end
  286. c.Humanoid.MaxHealth = health
  287. wait()
  288. c.Humanoid.Health = health
  289. end
  290. setJointCFrames = function(table)
  291. for i = 1, #table do
  292. JointTargets[i] = table[i]
  293. end
  294. end
  295. setLerp = function(speed)
  296. AnimStat.lerpSpeed = speed
  297. end
  298. takeDamage = function(position, damage, distance, platformStand)
  299. hitPlrs = {}
  300. for i,v in pairs(pls:children()) do
  301. if v:isA("Player") and workspace:FindFirstChild(v.Name) and v ~= lp then
  302. local tor = workspace[v.Name]
  303. --if tor and tor:FindFirstChild("HumanoidRootPart") and tor:FindFirstChild("Humanoid") and tor.HumanoidRootPart.Position - position.magnitude < distance then
  304. tor.Humanoid:TakeDamage(damage)
  305. table.insert(hitPlrs, #hitPlrs + 1, v)
  306. sound(tor.HumanoidRootPart, 131237241, math.random(4, 7) / 10, math.random(85, 115) / 100)
  307. if platformStand then
  308. v.Character.PlatformStand = platformStand
  309. end
  310. --end
  311. end
  312. end
  313. return hitPlrs
  314. end
  315. moveVel = function(dir, speed, time)
  316. spawn(function()
  317. local g = Instance.new("BodyGyro", root)
  318. g.D = 0
  319. g.CFrame = root.CFrame
  320. g.MaxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  321. g.P = 10000000000
  322. local e = Instance.new("BodyVelocity", root)
  323. e.Velocity = dir.unit * speed
  324. e.P = 10000
  325. e.MaxForce = Vector3.new(100000000, 100000000, 100000000)
  326. wait(time)
  327. e:Destroy()
  328. g:Destroy()
  329. end)
  330. end
  331. sound = function(part, id, volume, pitch)
  332. local x = Instance.new("Sound", part)
  333. x.SoundId = "rbxassetid://" .. id
  334. x.Volume = volume or 0.7
  335. x.Pitch = pitch or 1
  336. spawn(function()
  337. wait()
  338. x:Play()
  339. wait((x.TimeLength or 120) + 0.033333333333333)
  340. x:Destroy()
  341. end)
  342. end
  343. prepareCharacter()
  344. spawn(function()
  345. Tick = 0
  346. sine = 0
  347. while wait() do
  348. Debounces.ComboTimer = Debounces.ComboTimer - 0.033333333333333
  349. Tick = tick() * 4.5
  350. sine = math.sin(Tick)
  351. if Debounces.isAttacking == false and Debounces.isMoving == false and math.abs(root.Velocity.y) < 1 then
  352. setLerp(0.2)
  353. setJointCFrames({CFrame.new(Vector3.new(0, -0.2 + sine / 45, 0)) * CFAngles(Vector3.new(0, -71, 3)), CFrame.new(Vector3.new(-0.031, 1.5 + math.sin(Tick + 1) / 65, -0.01)) * CFAngles(Vector3.new(2.959 + math.sin(Tick) * 2, 60.763, -3.105)), CFrame.new(Vector3.new(-1.621, 0.229 + math.sin(Tick + 0.5) / 25, -0.46)) * CFAngles(Vector3.new(92.104 + math.sin(Tick + 1.7) * 2, -43.603, -48.471 + math.sin(Tick - 1.4) * 2)), CFrame.new(Vector3.new(0.649, 0.049 + math.sin(Tick + 0.7) / 25, -0.97)) * CFAngles(Vector3.new(121.338 + math.sin(Tick + 1.5) * 2, 13.67 + math.sin(Tick + 2.1), -50.552 + math.sin(Tick + 1.2) * 2)), CFrame.new(Vector3.new(-0.8, -1.891, -0.081)) * CFAngles(Vector3.new(-2.819, 35.424, -4.553)), CFrame.new(Vector3.new(0.6, -1.881, -0.15)) * CFAngles(Vector3.new(-0.82, -20.773, 4.072))})
  354. else
  355. if Debounces.isAttacking == false and Debounces.isMoving == true and math.abs(root.Velocity.y) < 1 then
  356. setLerp(0.3)
  357. Debounces.Speed = 0.9
  358. setJointCFrames({CFrame.new(Vector3.new(0, -0.21 + math.sin(Tick * 4) / 45, 0)) * CFAngles(Vector3.new(-math.abs(root.RotVelocity.y / 1.7), -71, 3.7)), CFrame.new(Vector3.new(-0.031, 1.5 + math.sin(Tick * 4 + 1) / 75, -0.01)) * CFAngles(Vector3.new(2.959 + math.sin(Tick) * 2, 60.763 + root.RotVelocity.y * 3, -3.105)), CFrame.new(Vector3.new(-1.621, 0.229 + math.sin(Tick * 4 + 0.5) / 45, -0.46)) * CFAngles(Vector3.new(92.104 + math.sin(Tick * 4 + 1.7), -43.603 + math.sin(Tick * 4) * 2, -48.471 + math.sin(Tick * 4 + 1.4) * 1)), CFrame.new(Vector3.new(0.649, 0.049 + math.sin(Tick * 4 + 0.7) / 45, -0.97)) * CFAngles(Vector3.new(121.338 + math.sin(Tick * 4 + 1.5), 13.67, -50.552 + math.sin(Tick * 4 + 1.2) * 1.2)), CFrame.new(Vector3.new(-0.7 + math.sin(Tick * 2.5) / 3, -1.791 - math.cos(Tick * 2.5) / 35, -0.081 - math.sin(Tick * 2.5) / 35)) * CFAngles(Vector3.new(-2.819 - math.sin(Tick * 2.5) * 12, 35.424, -8.553 + math.sin(Tick * 2.5 + 0.1) * 14)), CFrame.new(Vector3.new(0.55 + math.sin(Tick * 2.5 + math.pi) / 3, -1.821 - math.cos(Tick * 2.5 + math.pi) / 20, -0.15)) * CFAngles(Vector3.new(-0.82, -20.773, 4.072 + math.sin(Tick * 2.5 + math.pi - 0.1) * 13))})
  359. else
  360. if Debounces.isAttacking == false and math.abs(root.Velocity.y) > 1 then
  361. if root.Velocity.y > 0 then
  362. Debounces.Speed = 0.9
  363. setLerp(0.1)
  364. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(10.058, 50.565 + root.RotVelocity.y * 3, -9.426)), CFrame.new(Vector3.new(-1.671, 0.559, -0.46)) * CFAngles(Vector3.new(134.256, -65.009, -21.142)), CFrame.new(Vector3.new(0.649, 0.049, -0.97)) * CFAngles(Vector3.new(120.776, 14.331, -50.416)), CFrame.new(Vector3.new(-0.39, -2.021, -0.081)) * CFAngles(Vector3.new(-2.819, 35.424, 5.086)), CFrame.new(Vector3.new(0.6, -1.931, -0.15)) * CFAngles(Vector3.new(-2.057, -13.672, 9.265))})
  365. else
  366. setLerp(0.1)
  367. Debounces.Speed = 1.1
  368. setJointCFrames({CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -71, 0)), CFrame.new(Vector3.new(-0.031, 1.5, -0.01)) * CFAngles(Vector3.new(-10.332, 31.167 + root.RotVelocity.y * 3, 6.469)), CFrame.new(Vector3.new(-1.671, 0.229, -0.46)) * CFAngles(Vector3.new(101.838, -52.86, -49.259)), CFrame.new(Vector3.new(0.929, 0.149, -1.311)) * CFAngles(Vector3.new(95.716, 21.155, -49.455)), CFrame.new(Vector3.new(-0.8, -1.891, -0.081)) * CFAngles(Vector3.new(-10.964, 9.476, -6.771)), CFrame.new(Vector3.new(0.6, -1.881, -0.15)) * CFAngles(Vector3.new(-6.112, -7.568, 7.395))})
  369. end
  370. end
  371. end
  372. end
  373. human.WalkSpeed = Debounces.Speed * 16
  374. end
  375. end)
  376. human.Changed:connect(function(prop)
  377. if prop == "MoveDirection" then
  378. if human.MoveDirection.magnitude > 0.02 then
  379. Debounces.isMoving = true
  380. else
  381. Debounces.isMoving = false
  382. end
  383. end
  384. end)
  385. uinps.InputBegan:connect(function(InputObj)
  386. if InputObj.KeyCode == Enum.KeyCode.Slash then
  387. local finishEvent = nil
  388. do
  389. Debounces.isTyping = true
  390. finishEvent = uinps.InputBegan:connect(function(InputObj)
  391. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  392. Debounces.isTyping = false
  393. finishEvent:disconnect()
  394. end
  395. end)
  396. end
  397. end
  398. end)
  399. uinps.InputBegan:connect(function(InputObj)
  400. if not Debounces.isTyping then
  401. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  402. Debounces.isSprinting = true
  403. else
  404. if InputObj.KeyCode == Enum.KeyCode.Q and not Debounces.isAttacking then
  405. Debounces.isAttacking = true
  406. wait()
  407. Debounces.Speed = 0.3
  408. setLerp(0.5)
  409. sound(c.Torso, 280667448, 0.3, math.random(100, 110) / 100)
  410. setJointCFrames({CFrame.new(Vector3.new(0, -0.2 + sine / 45, 0)) * CFAngles(Vector3.new(0, -71, 3)), CFrame.new(Vector3.new(-0.031, 1.5 + math.sin(Tick + 1) / 65, -0.01)) * CFAngles(Vector3.new(2.959 + math.sin(Tick) * 2, 60.763, 1.105)), CFrame.new(Vector3.new(-1.621, 0.529, -0.46)) * CFAngles(Vector3.new(130.035, -58.975, -25.477)), CFrame.new(Vector3.new(0.649, 0.049 + math.sin(Tick + 0.7) / 25, -0.97)) * CFAngles(Vector3.new(121.338 + math.sin(Tick + 1.5) * 2, 13.67 + math.sin(Tick + 2.1), -50.552 + math.sin(Tick + 1.2) * 2)), CFrame.new(Vector3.new(-0.8, -1.891, -0.081)) * CFAngles(Vector3.new(-2.819, 35.424, -4.553)), CFrame.new(Vector3.new(0.6, -1.881, -0.15)) * CFAngles(Vector3.new(-0.82, -20.773, 4.072))})
  411. wait(0.05)
  412. setLerp(0.4)
  413. setJointCFrames({CFrame.new(Vector3.new(0, -0.2 + sine / 45, 0)) * CFAngles(Vector3.new(0, -71, 3)), CFrame.new(Vector3.new(-0.031, 1.5 + math.sin(Tick + 1) / 65, -0.01)) * CFAngles(Vector3.new(2.959 + math.sin(Tick) * 2, 60.763, -3.105)), CFrame.new(Vector3.new(-1.621, 0.229, -0.46)) * CFAngles(Vector3.new(92.104, -43.603, -48.471)), CFrame.new(Vector3.new(0.649, 0.049 + math.sin(Tick + 0.7) / 25, -0.97)) * CFAngles(Vector3.new(121.338 + math.sin(Tick + 1.5) * 2, 13.67 + math.sin(Tick + 2.1), -50.552 + math.sin(Tick + 1.2) * 2)), CFrame.new(Vector3.new(-0.8, -1.891, -0.081)) * CFAngles(Vector3.new(-2.819, 35.424, -4.553)), CFrame.new(Vector3.new(0.6, -1.881, -0.15)) * CFAngles(Vector3.new(-0.82, -20.773, 4.072))})
  414. wait(0.07)
  415. setLerp(0.5)
  416. sound(c.Torso, 280667448, 0.3, math.random(100, 110) / 100)
  417. setJointCFrames({CFrame.new(Vector3.new(0, -0.2 + sine / 45, 0)) * CFAngles(Vector3.new(0, -71, 3)), CFrame.new(Vector3.new(-0.031, 1.5 + math.sin(Tick + 1) / 65, -0.01)) * CFAngles(Vector3.new(2.959 + math.sin(Tick) * 2, 60.763, 1.105)), CFrame.new(Vector3.new(-1.621, 0.529, -0.46)) * CFAngles(Vector3.new(130.035, -58.975, -25.477)), CFrame.new(Vector3.new(0.649, 0.049 + math.sin(Tick + 0.7) / 25, -0.97)) * CFAngles(Vector3.new(121.338 + math.sin(Tick + 1.5) * 2, 13.67 + math.sin(Tick + 2.1), -50.552 + math.sin(Tick + 1.2) * 2)), CFrame.new(Vector3.new(-0.8, -1.891, -0.081)) * CFAngles(Vector3.new(-2.819, 35.424, -4.553)), CFrame.new(Vector3.new(0.6, -1.881, -0.15)) * CFAngles(Vector3.new(-0.82, -20.773, 4.072))})
  418. wait(0.08)
  419. Debounces.isAttacking = false
  420. else
  421. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.canSpecial and not Debounces.isAttacking then
  422. Debounces.isAttacking = true
  423. Debounces.canSpecial = false
  424. Combo[#Combo]()
  425. Debounces.isAttacking = false
  426. wait(7)
  427. Debounces.canSpecial = true
  428. else
  429. if InputObj.KeyCode == Enum.KeyCode.X and Debounces.canNormal and not Debounces.isAttacking then
  430. Debounces.isAttacking = true
  431. Debounces.canNormal = false
  432. Combo[4]()
  433. Debounces.isAttacking = false
  434. wait(3.25)
  435. Debounces.canNormal = true
  436. else
  437. if InputObj.KeyCode == Enum.KeyCode.Z and Debounces.canNormal and not Debounces.isAttacking then
  438. Debounces.isAttacking = true
  439. Debounces.canNormal = false
  440. Combo[6]()
  441. Debounces.isAttacking = false
  442. wait(2.75)
  443. Debounces.canNormal = true
  444. end
  445. end
  446. end
  447. end
  448. end
  449. end
  450. end)
  451. uinps.InputEnded:connect(function(InputObj)
  452. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  453. Debounces.isSprinting = false
  454. end
  455. end)
  456. mouse.Button1Down:connect(function()
  457. if not Debounces.isAttacking then
  458. Debounces.isAttacking = true
  459. if Debounces.ComboTimer > 0 then
  460. Debounces.Combo = Debounces.Combo + 1
  461. else
  462. Debounces.Combo = 1
  463. end
  464. local hit = Combo[Debounces.Combo % #Combo + 1]()
  465. if hit then
  466. Debounces.ComboTimer = 1.25
  467. end
  468. Debounces.isAttacking = false
  469. end
  470. end)
  471. rs.RenderStepped:connect(function()
  472. Debounces.FPS = 1 / rs.RenderStepped:wait()
  473. if Debounces.FPS < 15 then
  474. Debounces.FPS = 15
  475. end
  476. for _,v in pairs(EfxModel:children()) do
  477. Effects[v.Name].move(v)
  478. end
  479. local FPSLerp = AnimStat.lerpSpeed / (Debounces.FPS / 60)
  480. for i = 1, #Joints do
  481. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  482. end
  483. local sineval = math.sin(tick() * 2) * 3
  484. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement