Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.51 KB | None | 0 0
  1. --FALCON PAWNCHHHHHHHHHHHHHHHHHHHHH
  2. pls = game:GetService("yomicool12")
  3. rs = game:GetService("RunService")
  4. uinps = game:GetService("UserInputService")
  5. lp = pls.LocalPlayer
  6. mouse = lp:GetMouse()
  7. c = lp.Character
  8. human = c.Humanoid
  9. health = 130
  10. root = c.HumanoidRootPart
  11. EfxModel = Instance.new("Model", c)
  12. Effects = {
  13. Spark = {new = function(pos, point, length, thickness, speed, distime, color, trans, material)
  14. local e = Instance.new("Part", EfxModel)
  15. e.Name = "Spark"
  16. e.Size = Vector3.new(thickness, thickness, length + math.random(-10, 10) / 10)
  17. e.BrickColor = BrickColor.new(color or "Black")
  18. if not trans then
  19. e.Transparency = math.random(1, 3) / 10
  20. e.Material = material or "Neon"
  21. e.Anchored = true
  22. e.CanCollide = false
  23. e.CFrame = CFrame.new(pos, point)
  24. local m = Instance.new("SpecialMesh", e)
  25. m.MeshType = "Sphere"
  26. local d = Instance.new("NumberValue", e)
  27. d.Name = "Time"
  28. d.Value = distime or 0.05
  29. local s = Instance.new("NumberValue", e)
  30. s.Name = "Speed"
  31. s.Value = speed or 0.5
  32. end
  33. end, move = function(part)
  34. part.CFrame = part.CFrame:toWorldSpace(CFrame.new(0, 0, part.Speed.Value / (Debounces.FPS / 60)))
  35. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  36. if part.Transparency > 0.97 then
  37. part:Destroy()
  38. end
  39. end}
  40. ,
  41. Spark2 = {new = function(pos, point, length, thickness, speed, distime, drop, color, trans, material)
  42. local e = Instance.new("Part", EfxModel)
  43. e.Name = "Spark2"
  44. e.Size = Vector3.new(thickness, thickness, length + math.random(-10, 10) / 10)
  45. e.BrickColor = BrickColor.new(color or "Black")
  46. if not trans then
  47. e.Transparency = math.random(1, 3) / 10
  48. e.Material = material or "Neon"
  49. e.Anchored = true
  50. e.CanCollide = false
  51. e.CFrame = CFrame.new(pos, point)
  52. local m = Instance.new("SpecialMesh", e)
  53. m.MeshType = "Sphere"
  54. local d = Instance.new("NumberValue", e)
  55. d.Name = "Time"
  56. d.Value = distime or 0.05
  57. local s = Instance.new("NumberValue", e)
  58. s.Name = "Speed"
  59. s.Value = speed or 0.5
  60. local d2 = Instance.new("NumberValue", e)
  61. d2.Name = "Drop"
  62. d2.Value = drop or 0.2
  63. end
  64. end, move = function(part)
  65. local moveTo = part.CFrame.lookVector * part.Speed.Value
  66. moveTo = moveTo - Vector3.new(0, part.Drop.Value / Debounces.FPS, 0)
  67. part.CFrame = CFrame.new(part.CFrame.p + (moveTo), part.CFrame.p + (moveTo) * 2)
  68. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  69. if part.Transparency > 0.97 then
  70. part:Destroy()
  71. end
  72. end}
  73. ,
  74. Sphere = {new = function(pos, radius, time, size, color, trans, material)
  75. local e = Instance.new("Part", EfxModel)
  76. e.Name = "Sphere"
  77. e.Size = Vector3.new(radius, radius, radius)
  78. e.BrickColor = BrickColor.new(color or "Black")
  79. if not trans then
  80. e.Transparency = math.random(1, 3) / 10
  81. e.Material = material or "Neon"
  82. e.Anchored = true
  83. e.CanCollide = false
  84. e.CFrame = CFrame.new(pos)
  85. local m = Instance.new("SpecialMesh", e)
  86. m.MeshType = "Sphere"
  87. local d = Instance.new("NumberValue", e)
  88. d.Name = "Time"
  89. d.Value = distime or 0.055
  90. local s = Instance.new("NumberValue", e)
  91. s.Name = "SizeChange"
  92. s.Value = size or 0.5
  93. end
  94. end, move = function(part)
  95. local pcf = part.CFrame
  96. part.Size = part.Size + Vector3.new(part.SizeChange.Value, part.SizeChange.Value, part.SizeChange.Value)
  97. part.CFrame = pcf
  98. part.Transparency = part.Transparency + part.Time.Value
  99. if part.Transparency > 0.95 then
  100. part:Destroy()
  101. end
  102. end}
  103. ,
  104. Fire = {new = function(pos, size, speed, transspeed, wave, color, trans, material)
  105. local e = Instance.new("Part", EfxModel)
  106. e.Name = "Fire"
  107. e.Size = Vector3.new(size, size, size)
  108. e.BrickColor = BrickColor.new(color or "Bright orange")
  109. if not trans then
  110. e.Transparency = math.random(1, 3) / 10
  111. e.Material = material or "Neon"
  112. e.Anchored = true
  113. e.CanCollide = false
  114. e.CFrame = CFrame.new(pos)
  115. local d = Instance.new("NumberValue", e)
  116. d.Name = "Time"
  117. d.Value = transspeed or 0.05
  118. local s = Instance.new("NumberValue", e)
  119. s.Name = "Speed"
  120. s.Value = speed or 0.5
  121. local w = Instance.new("NumberValue", e)
  122. w.Name = "Wave"
  123. w.Value = wave or 0
  124. end
  125. end, move = function(part)
  126. local partPos = part.CFrame.p
  127. part.Size = part.Size - Vector3.new(0.2, 0.2, 0.2)
  128. 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))
  129. part.Transparency = part.Transparency + part.Time.Value / (Debounces.FPS / 60)
  130. if part.Transparency > 0.97 then
  131. part:Destroy()
  132. end
  133. end}
  134. }
  135. CEfx = {SparkSphere = function(pos, loopcount, radius, length, thickness, speed, distime, color, trans, material)
  136. for i = 1, loopcount do
  137. 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)
  138. end
  139. end, Spark2Sphere = function(pos, loopcount, radius, length, thickness, speed, distime, drop, color, trans, material)
  140. for i = 1, loopcount do
  141. 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
  142. Effects.Spark2.new(pos + vector, pos + vector * 2, length, thickness, speed, distime, drop, color, trans, material)
  143. end
  144. end}
  145. Debounces = {FPS = 0, Speed = 1, Combo = 1, ComboTimer = 0, canSpecial = true, canNormal = true, isAttacking = false, isMoving = false, isSprinting = false, isTyping = false}
  146. numLerp = function(start, goal, alpha)
  147. return (goal - start) * alpha + start
  148. end
  149. CFrameZero = function()
  150. return CFrame.new(Vector3.new())
  151. end
  152. rad = function(value)
  153. return math.rad(value)
  154. end
  155. CFAngles = function(Vector)
  156. return CFrame.Angles(rad(Vector.x), rad(Vector.y), rad(Vector.z))
  157. end
  158. AnimStat = {lerpSpeed = 0.2}
  159. Joints = {c.HumanoidRootPart.RootJoint, c.Torso.Neck, c.Torso["Left Shoulder"], c.Torso["Right Shoulder"], c.Torso["Left Hip"], c.Torso["Right Hip"]}
  160. JointTargets = {CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero(), CFrameZero()}
  161. Combo = {function()
  162. setLerp(0.3)
  163. Debounces.Speed = 0.7
  164. 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))})
  165. wait(0.15)
  166. local hit = takeDamage(root.Position, math.random(13, 16), 5, false)
  167. setLerp(0.4)
  168. Debounces.Speed = 1.1
  169. 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))})
  170. sound(c.Torso, 280667448, math.random(72, 97) / 100, math.random(85, 115) / 100)
  171. wait(0.17)
  172. return hit[1]
  173. end, function()
  174. setLerp(0.3)
  175. Debounces.Speed = 0.7
  176. 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))})
  177. wait(0.15)
  178. local hit = takeDamage(root.Position, math.random(13, 15), 5, false)
  179. setLerp(0.4)
  180. 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))})
  181. sound(c.Torso, 280667448, math.random(72, 97) / 100, math.random(85, 115) / 100)
  182. wait(0.17)
  183. return hit[1]
  184. end, function()
  185. setLerp(0.3)
  186. Debounces.Speed = 0.7
  187. 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))})
  188. wait(0.15)
  189. local hit = takeDamage(root.Position, math.random(13, 17), 5, false)
  190. setLerp(0.4)
  191. Debounces.Speed = 1.1
  192. 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))})
  193. sound(c.Torso, 147722227, math.random(72, 97) / 100, math.random(85, 115) / 100)
  194. wait(0.06)
  195. Effects.Fire.new(c["Right Leg"].Position, 4, 0.5, 0.04, 3, "Bright yellow")
  196. wait(0.08)
  197. return hit[1]
  198. end, function()
  199. setLerp(0.3)
  200. Debounces.Speed = 0.7
  201. 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))})
  202. wait(0.15)
  203. local hit = takeDamage(root.Position, math.random(12, 15), 5, false)
  204. setLerp(0.4)
  205. Debounces.Speed = 1.1
  206. 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))})
  207. Effects.Fire.new(c["Right Arm"].Position, 4, 0.5, 0.04, 3, "Bright yellow")
  208. CEfx.Spark2Sphere(c["Right Arm"].Position, 15, 4, 8, 0.3, 2, 0.05, 3, "Bright yellow")
  209. sound(c.Torso, 260430079, math.random(72, 97) / 100, math.random(85, 115) / 100)
  210. wait(0.17)
  211. return hit[1]
  212. end, function()
  213. setLerp(0.3)
  214. Debounces.Speed = 0.7
  215. CEfx.SparkSphere(c.Torso.Position, 10, 15, 4, 0.2, -0.8, 0.05, "Bright yellow")
  216. 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))})
  217. wait(0.15)
  218. local hit = takeDamage(root.Position, math.random(13, 15), 5, false)
  219. setLerp(0.4)
  220. Debounces.Speed = 1.1
  221. 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))})
  222. sound(c.Torso, 147722227, math.random(72, 97) / 100, math.random(85, 115) / 100)
  223. wait(0.17)
  224. return hit[1]
  225. end, function()
  226. setLerp(0.3)
  227. Debounces.Speed = 0.7
  228. 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))})
  229. wait(0.15)
  230. local hit = takeDamage(root.Position, math.random(10, 12), 5, false)
  231. setLerp(0.4)
  232. Debounces.Speed = 1.1
  233. 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))})
  234. wait(0.06)
  235. Effects.Fire.new(c["Right Leg"].Position, 4, 0.5, 0.04, 3, "Bright yellow")
  236. sound(c.Torso, 260430079, math.random(72, 97) / 100, math.random(105, 115) / 100)
  237. wait(0.08)
  238. return hit[1]
  239. end, function()
  240. Debounces.Speed = 0
  241. setLerp(0.2)
  242. CEfx.SparkSphere(c.Torso.Position, 15, 25, 7, 0.3, -0.6, 0.02, "Bright orange")
  243. sound(c.Torso, 280667448, math.random(47, 72) / 100, math.random(85, 90) / 100)
  244. 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))})
  245. wait(0.3)
  246. moveVel(root.CFrame.lookVector, 65, 0.5)
  247. setLerp(0.4)
  248. 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))})
  249. sound(c.Torso, 260430117, 1, math.random(95, 115) / 100)
  250. for i = 1, 8 do
  251. wait(0.05)
  252. local hit = takeDamage(root.Position, math.random(5, 7), 5, false)
  253. Effects.Fire.new(c["Right Arm"].Position, 4 + math.random(-10, 10) / 10, 0.5, 0.04, 5 + math.random(1, 4), "Bright yellow")
  254. Effects.Fire.new(c["Right Arm"].Position, 4 + math.random(-10, 10) / 10, 0.5, 0.04, 4 + math.random(1, 4), "Bright orange")
  255. Effects.Fire.new(c["Right Arm"].Position, 4 + math.random(-10, 10) / 10, 0.5, 0.04, 7 + math.random(1, 4), "Bright red")
  256. end
  257. --return hit[1]
  258. end}
  259. prepareCharacter = function()
  260. local animator = c.Humanoid:FindFirstChild("Animator")
  261. if animator then
  262. animator:Destroy()
  263. end
  264. local animate = c:FindFirstChild("Animate")
  265. if animate then
  266. animate:Destroy()
  267. end
  268. for _,x in pairs(Joints) do
  269. x.C1 = CFrameZero()
  270. end
  271. for _,v in pairs(c.Head:children()) do
  272. if v:isA("Sound") then
  273. v:Destroy()
  274. end
  275. end
  276. c.Humanoid.MaxHealth = health
  277. wait()
  278. c.Humanoid.Health = health
  279. end
  280. setJointCFrames = function(table)
  281. for i = 1, #table do
  282. JointTargets[i] = table[i]
  283. end
  284. end
  285. setLerp = function(speed)
  286. AnimStat.lerpSpeed = speed
  287. end
  288. takeDamage = function(position, damage, distance, platformStand)
  289. hitPlrs = {}
  290. for i,v in pairs(pls:children()) do
  291. if v:isA("Player") and workspace:FindFirstChild(v.Name) and v ~= lp then
  292. local tor = workspace[v.Name]
  293. if tor and tor:FindFirstChild("Humanoid") and (tor.HumanoidRootPart.Position - position).magnitude < distance then
  294. tor.Humanoid:TakeDamage(damage)
  295. table.insert(hitPlrs, #hitPlrs + 1, v)
  296. sound(tor.HumanoidRootPart, 131237241, math.random(4, 7) / 10, math.random(85, 115) / 100)
  297. if platformStand then
  298. v.Character.PlatformStand = platformStand
  299. end
  300. end
  301. end
  302. end
  303. return hitPlrs
  304. end
  305. moveVel = function(dir, speed, time)
  306. spawn(function()
  307. local g = Instance.new("BodyGyro", root)
  308. g.D = 0
  309. g.CFrame = root.CFrame
  310. g.MaxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  311. g.P = 10000000000
  312. local e = Instance.new("BodyVelocity", root)
  313. e.Velocity = dir.unit * speed
  314. e.P = 10000
  315. e.MaxForce = Vector3.new(100000000, 100000000, 100000000)
  316. wait(time)
  317. e:Destroy()
  318. g:Destroy()
  319. end)
  320. end
  321. sound = function(part, id, volume, pitch)
  322. local x = Instance.new("Sound", part)
  323. x.SoundId = "rbxassetid://" .. id
  324. x.Volume = volume or 0.7
  325. x.Pitch = pitch or 1
  326. spawn(function()
  327. wait()
  328. x:Play()
  329. wait((x.TimeLength or 120) + 0.033333333333333)
  330. x:Destroy()
  331. end)
  332. end
  333. prepareCharacter()
  334. spawn(function()
  335. Tick = 0
  336. sine = 0
  337. while wait() do
  338. Debounces.ComboTimer = Debounces.ComboTimer - 0.033333333333333
  339. Tick = tick() * 4.5
  340. sine = math.sin(Tick)
  341. if Debounces.isAttacking == false and Debounces.isMoving == false and math.abs(root.Velocity.y) < 1 then
  342. setLerp(0.2)
  343. 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))})
  344. else
  345. if Debounces.isAttacking == false and Debounces.isMoving == true and math.abs(root.Velocity.y) < 1 then
  346. setLerp(0.3)
  347. Debounces.Speed = 0.9
  348. 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))})
  349. else
  350. if Debounces.isAttacking == false and math.abs(root.Velocity.y) > 1 then
  351. if root.Velocity.y > 0 then
  352. Debounces.Speed = 0.9
  353. setLerp(0.1)
  354. 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))})
  355. else
  356. setLerp(0.1)
  357. Debounces.Speed = 1.1
  358. 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))})
  359. end
  360. end
  361. end
  362. end
  363. human.WalkSpeed = Debounces.Speed * 16
  364. end
  365. end)
  366. human.Changed:connect(function(prop)
  367. if prop == "MoveDirection" then
  368. if human.MoveDirection.magnitude > 0.02 then
  369. Debounces.isMoving = true
  370. else
  371. Debounces.isMoving = false
  372. end
  373. end
  374. end)
  375. uinps.InputBegan:connect(function(InputObj)
  376. if InputObj.KeyCode == Enum.KeyCode.Slash then
  377. local finishEvent = nil
  378. do
  379. Debounces.isTyping = true
  380. finishEvent = uinps.InputBegan:connect(function(InputObj)
  381. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  382. Debounces.isTyping = false
  383. finishEvent:disconnect()
  384. end
  385. end)
  386. end
  387. end
  388. end)
  389. uinps.InputBegan:connect(function(InputObj)
  390. if not Debounces.isTyping then
  391. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  392. Debounces.isSprinting = true
  393. else
  394. if InputObj.KeyCode == Enum.KeyCode.Q and not Debounces.isAttacking then
  395. Debounces.isAttacking = true
  396. wait()
  397. Debounces.Speed = 0.3
  398. setLerp(0.5)
  399. sound(c.Torso, 280667448, 0.3, math.random(100, 110) / 100)
  400. 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))})
  401. wait(0.05)
  402. setLerp(0.4)
  403. 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))})
  404. wait(0.07)
  405. setLerp(0.5)
  406. sound(c.Torso, 280667448, 0.3, math.random(100, 110) / 100)
  407. 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))})
  408. wait(0.08)
  409. Debounces.isAttacking = false
  410. else
  411. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.canSpecial and not Debounces.isAttacking then
  412. Debounces.isAttacking = true
  413. Debounces.canSpecial = false
  414. Combo[#Combo]()
  415. Debounces.isAttacking = false
  416. wait(7)
  417. Debounces.canSpecial = true
  418. else
  419. if InputObj.KeyCode == Enum.KeyCode.X and Debounces.canNormal and not Debounces.isAttacking then
  420. Debounces.isAttacking = true
  421. Debounces.canNormal = false
  422. Combo[4]()
  423. Debounces.isAttacking = false
  424. wait(3.25)
  425. Debounces.canNormal = true
  426. else
  427. if InputObj.KeyCode == Enum.KeyCode.Z and Debounces.canNormal and not Debounces.isAttacking then
  428. Debounces.isAttacking = true
  429. Debounces.canNormal = false
  430. Combo[6]()
  431. Debounces.isAttacking = false
  432. wait(2.75)
  433. Debounces.canNormal = true
  434. end
  435. end
  436. end
  437. end
  438. end
  439. end
  440. end)
  441. uinps.InputEnded:connect(function(InputObj)
  442. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  443. Debounces.isSprinting = false
  444. end
  445. end)
  446. mouse.Button1Down:connect(function()
  447. if not Debounces.isAttacking then
  448. Debounces.isAttacking = true
  449. if Debounces.ComboTimer > 0 then
  450. Debounces.Combo = Debounces.Combo + 1
  451. else
  452. Debounces.Combo = 1
  453. end
  454. local hit = Combo[Debounces.Combo % #Combo + 1]()
  455. if hit then
  456. Debounces.ComboTimer = 1.25
  457. end
  458. Debounces.isAttacking = false
  459. end
  460. end)
  461. rs.RenderStepped:connect(function()
  462. Debounces.FPS = 1 / rs.RenderStepped:wait()
  463. if Debounces.FPS < 15 then
  464. Debounces.FPS = 15
  465. end
  466. for _,v in pairs(EfxModel:children()) do
  467. Effects[v.Name].move(v)
  468. end
  469. local FPSLerp = AnimStat.lerpSpeed / (Debounces.FPS / 60)
  470. for i = 1, #Joints do
  471. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  472. end
  473. local sineval = math.sin(tick() * 2) * 3
  474. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement