Advertisement
lafur

Untitled

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