carlosname

Untitled

Apr 28th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.  
  3. Made by Tentergram
  4. Damage Fixed by Cronizete
  5.  
  6. --]]
  7.  
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,game,owner = owner,game
  10. local RealPlayer = Player
  11. do
  12. print("FE Compatibility code V2 by Mokiros")
  13. local RealPlayer = RealPlayer
  14. script.Parent = RealPlayer.Character
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local Disconnect_Function = function(this)
  18. this[1].Functions[this[2]] = nil
  19. end
  20. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  21. local FakeEvent_Metatable = {__index={
  22. Connect = function(this,f)
  23. local i = tostring(math.random(0,10000))
  24. while this.Functions[i] do
  25. i = tostring(math.random(0,10000))
  26. end
  27. this.Functions[i] = f
  28. return setmetatable({this,i},Disconnect_Metatable)
  29. end
  30. }}
  31. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  32. local function fakeEvent()
  33. return setmetatable({Functions={}},FakeEvent_Metatable)
  34. end
  35.  
  36. --Creating fake input objects with fake variables
  37. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  38. FakeMouse.keyUp = FakeMouse.KeyUp
  39. FakeMouse.keyDown = FakeMouse.KeyDown
  40. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  41. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  42. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  43. end}
  44. --Merged 2 functions into one by checking amount of arguments
  45. CAS.UnbindAction = CAS.BindAction
  46.  
  47. --This function will trigger the events that have been :Connect()'ed
  48. local function TriggerEvent(self,ev,...)
  49. for _,f in pairs(self[ev].Functions) do
  50. f(...)
  51. end
  52. end
  53. FakeMouse.TriggerEvent = TriggerEvent
  54. UIS.TriggerEvent = TriggerEvent
  55.  
  56. --Client communication
  57. local Event = Instance.new("RemoteEvent")
  58. Event.Name = "UserInput_Event"
  59. Event.OnServerEvent:Connect(function(plr,io)
  60. if plr~=RealPlayer then return end
  61. FakeMouse.Target = io.Target
  62. FakeMouse.Hit = io.Hit
  63. if not io.isMouse then
  64. local b = io.UserInputState == Enum.UserInputState.Begin
  65. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  66. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  67. end
  68. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  69. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  70. end
  71. for _,t in pairs(CAS.Actions) do
  72. for _,k in pairs(t.Keys) do
  73. if k==io.KeyCode then
  74. t.Function(t.Name,io.UserInputState,io)
  75. end
  76. end
  77. end
  78. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  79. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  80. end
  81. end)
  82. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  83. local Mouse = owner:GetMouse()
  84. local UIS = game:GetService("UserInputService")
  85. local input = function(io,RobloxHandled)
  86. if RobloxHandled then return end
  87. --Since InputObject is a client-side instance, we create and pass table instead
  88. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  89. end
  90. UIS.InputBegan:Connect(input)
  91. UIS.InputEnded:Connect(input)
  92. local h,t
  93. --Give the server mouse data every second frame, but only if the values changed
  94. --If player is not moving their mouse, client won't fire events
  95. local HB = game:GetService("RunService").Heartbeat
  96. while true do
  97. if h~=Mouse.Hit or t~=Mouse.Target then
  98. h,t=Mouse.Hit,Mouse.Target
  99. Event:FireServer({isMouse=true,Target=t,Hit=h})
  100. end
  101. --Wait 2 frames
  102. for i=1,2 do
  103. HB:Wait()
  104. end
  105. end]==],script)
  106.  
  107. ----Sandboxed game object that allows the usage of client-side methods and services
  108. --Real game object
  109. local RealGame = game
  110.  
  111. --Metatable for fake service
  112. local FakeService_Metatable = {
  113. __index = function(self,k)
  114. local s = rawget(self,"_RealService")
  115. if s then
  116. return typeof(s[k])=="function"
  117. and function(_,...)return s[k](s,...)end or s[k]
  118. end
  119. end,
  120. __newindex = function(self,k,v)
  121. local s = rawget(self,"_RealService")
  122. if s then s[k]=v end
  123. end
  124. }
  125. local function FakeService(t,RealService)
  126. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  127. return setmetatable(t,FakeService_Metatable)
  128. end
  129.  
  130. --Fake game object
  131. local FakeGame = {
  132. GetService = function(self,s)
  133. return rawget(self,s) or RealGame:GetService(s)
  134. end,
  135. Players = FakeService({
  136. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  137. },"Players"),
  138. UserInputService = FakeService(UIS,"UserInputService"),
  139. ContextActionService = FakeService(CAS,"ContextActionService"),
  140. RunService = FakeService({
  141. _btrs = {},
  142. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  143. BindToRenderStep = function(self,name,_,fun)
  144. self._btrs[name] = self.Heartbeat:Connect(fun)
  145. end,
  146. UnbindFromRenderStep = function(self,name)
  147. self._btrs[name]:Disconnect()
  148. end,
  149. },"RunService")
  150. }
  151. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  152. FakeGame.service = FakeGame.GetService
  153. FakeService(FakeGame,game)
  154. --Changing owner to fake player object to support owner:GetMouse()
  155. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  156. end
  157.  
  158. local Player = game.Players.LocalPlayer
  159. local Character = Player.Character
  160. local Mouse = Player:GetMouse()
  161. local Head = Character.Torso:WaitForChild("Neck")
  162. local RootPart = Character:WaitForChild("HumanoidRootPart")
  163. local Torso = RootPart:WaitForChild("RootJoint")
  164. local RealTorso = Character:WaitForChild("Torso")
  165. local LeftArm = RealTorso:WaitForChild("Left Shoulder")
  166. local RightArm = RealTorso:WaitForChild("Right Shoulder")
  167. local RightLeg = RealTorso:WaitForChild("Right Hip")
  168. local LeftLeg = RealTorso:WaitForChild("Left Hip")
  169. local isKneeing = false
  170. local Attacking = false
  171. local PlayMainAnims = true
  172. local CharHum = Character:WaitForChild("Humanoid")
  173. local timeDamage = 0
  174. local AttackSeq = 0
  175. local HumanTimeStop = false
  176. local ArmSpreadL = math.random(-10, 10)
  177. local ArmSpreadR = math.random(-10, 10)
  178.  
  179. char = Player.Character
  180. mud = false
  181. attac = false
  182.  
  183. local player = game.Players.LocalPlayer
  184. local shirt = player.Character:WaitForChild("Shirt")
  185. local pants = player.Character:WaitForChild("Pants")
  186.  
  187. wait()
  188. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=536831523"
  189. pants.PantsTemplate = "http://www.roblox.com/asset/?id=547264976"
  190.  
  191. char.Humanoid.MaxHealth = math.huge
  192. char.Humanoid.Health = math.huge
  193.  
  194. for i,v in pairs(char:GetChildren()) do
  195. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  196. v:destroy()
  197. end
  198. end
  199.  
  200. local Hair = Instance.new("Part")
  201. Hair.Parent = char
  202. Hair.Name = "Hair"
  203. Hair.Size = Vector3.new(1, 1, 1)
  204. Hair.CFrame = char.Head.CFrame
  205. Hair:BreakJoints()
  206. Hair.CanCollide = false
  207. Hair.TopSurface = "Smooth"
  208. Hair.BottomSurface = "Smooth"
  209. Hair.BrickColor = BrickColor.new("Gold")
  210. Weld = Instance.new("Weld")
  211. Weld.Name = "Weld"
  212. Weld.Part0 = char.Head
  213. Weld.Part1 = Hair
  214. Weld.Parent = char.Head
  215. Weld.C0 = CFrame.new(0.1,0,0.2)*CFrame.fromEulerAnglesXYZ(0,0,0)
  216. Mesh = Instance.new("SpecialMesh")
  217. Mesh.Parent = Hair
  218. Mesh.MeshId = "rbxassetid://886288384"
  219. Mesh.TextureId = "rbxassetid://886289004"
  220. Mesh.Scale = Vector3.new(0.11,0.1,0.08)
  221.  
  222. local r6 = {
  223. "Head",
  224. "Torso",
  225. "Left Arm",
  226. "Right Arm",
  227. "Left Leg",
  228. "Right Leg"
  229. }
  230. local r15 = {
  231. "Head",
  232. "LowerTorso",
  233. "UpperTorso",
  234. "LeftFoot",
  235. "LeftUpperLeg",
  236. "LeftLowerLeg",
  237. "RightFoot",
  238. "RightUpperLeg",
  239. "RightLowerLeg",
  240. "LeftHand",
  241. "RightHand",
  242. "RightUpperArm",
  243. "RightLowerArm",
  244. "LeftUpperArm",
  245. "LeftLowerArm"
  246. }
  247. local Animation = {class = "Animation"}
  248. local Keyframe = {class = "Keyframe"}
  249. local pow = math.pow
  250. local sin = math.sin
  251. local cos = math.cos
  252. local pi = math.pi
  253. local sqrt = math.sqrt
  254. local abs = math.abs
  255. local asin = math.asin
  256. local linear = function(t, b, c, d)
  257. return c * t / d + b
  258. end
  259. local function inQuad(t, b, c, d)
  260. t = t / d
  261. return c * pow(t, 2) + b
  262. end
  263. local outQuad = function(t, b, c, d)
  264. t = t / d
  265. return -c * t * (t - 2) + b
  266. end
  267. local function inOutQuad(t, b, c, d)
  268. t = t / d * 2
  269. if t < 1 then
  270. return c / 2 * pow(t, 2) + b
  271. else
  272. return -c / 2 * ((t - 1) * (t - 3) - 1) + b
  273. end
  274. end
  275. local function outInQuad(t, b, c, d)
  276. if t < d / 2 then
  277. return outQuad(t * 2, b, c / 2, d)
  278. else
  279. return inQuad(t * 2 - d, b + c / 2, c / 2, d)
  280. end
  281. end
  282. local function inCubic(t, b, c, d)
  283. t = t / d
  284. return c * pow(t, 3) + b
  285. end
  286. local function outCubic(t, b, c, d)
  287. t = t / d - 1
  288. return c * (pow(t, 3) + 1) + b
  289. end
  290. local inOutCubic = function(t, b, c, d)
  291. t = t / d * 2
  292. if t < 1 then
  293. return c / 2 * t * t * t + b
  294. else
  295. t = t - 2
  296. return c / 2 * (t * t * t + 2) + b
  297. end
  298. end
  299. local function outInCubic(t, b, c, d)
  300. if t < d / 2 then
  301. return outCubic(t * 2, b, c / 2, d)
  302. else
  303. return inCubic(t * 2 - d, b + c / 2, c / 2, d)
  304. end
  305. end
  306. local function inQuart(t, b, c, d)
  307. t = t / d
  308. return c * pow(t, 4) + b
  309. end
  310. local function outQuart(t, b, c, d)
  311. t = t / d - 1
  312. return -c * (pow(t, 4) - 1) + b
  313. end
  314. local function inOutQuart(t, b, c, d)
  315. t = t / d * 2
  316. if t < 1 then
  317. return c / 2 * pow(t, 4) + b
  318. else
  319. t = t - 2
  320. return -c / 2 * (pow(t, 4) - 2) + b
  321. end
  322. end
  323. local function outInQuart(t, b, c, d)
  324. if t < d / 2 then
  325. return outQuart(t * 2, b, c / 2, d)
  326. else
  327. return inQuart(t * 2 - d, b + c / 2, c / 2, d)
  328. end
  329. end
  330. local scriptName, inQuint = pow, nil
  331. local function outQuint(t, b, c, d)
  332. t = t / d - 1
  333. return c * (pow(t, 5) + 1) + b
  334. end
  335. local function inOutQuint(t, b, c, d)
  336. t = t / d * 2
  337. if t < 1 then
  338. return c / 2 * pow(t, 5) + b
  339. else
  340. t = t - 2
  341. return c / 2 * (pow(t, 5) + 2) + b
  342. end
  343. end
  344. local function outInQuint(t, b, c, d)
  345. if t < d / 2 then
  346. return outQuint(t * 2, b, c / 2, d)
  347. else
  348. return inQuint(t * 2 - d, b + c / 2, c / 2, d)
  349. end
  350. end
  351. scriptName = cos
  352. local scriptName, inSine = pi, nil
  353. local function outSine(t, b, c, d)
  354. return c * sin(t / d * (pi / 2)) + b
  355. end
  356. local function inOutSine(t, b, c, d)
  357. return -c / 2 * (cos(pi * t / d) - 1) + b
  358. end
  359. local function outInSine(t, b, c, d)
  360. if t < d / 2 then
  361. return outSine(t * 2, b, c / 2, d)
  362. else
  363. return inSine(t * 2 - d, b + c / 2, c / 2, d)
  364. end
  365. end
  366. local function inExpo(t, b, c, d)
  367. if t == 0 then
  368. return b
  369. else
  370. return c * pow(2, 10 * (t / d - 1)) + b - c * 0.001
  371. end
  372. end
  373. local function outExpo(t, b, c, d)
  374. if t == d then
  375. return b + c
  376. else
  377. return c * 1.001 * (-pow(2, -10 * t / d) + 1) + b
  378. end
  379. end
  380. local function inOutExpo(t, b, c, d)
  381. if t == 0 then
  382. return b
  383. end
  384. if t == d then
  385. return b + c
  386. end
  387. t = t / d * 2
  388. if t < 1 then
  389. return c / 2 * pow(2, 10 * (t - 1)) + b - c * 5.0E-4
  390. else
  391. t = t - 1
  392. return c / 2 * 1.0005 * (-pow(2, -10 * t) + 2) + b
  393. end
  394. end
  395. local function outInExpo(t, b, c, d)
  396. if t < d / 2 then
  397. return outExpo(t * 2, b, c / 2, d)
  398. else
  399. return inExpo(t * 2 - d, b + c / 2, c / 2, d)
  400. end
  401. end
  402. local function outCirc(t, b, c, d)
  403. t = t / d - 1
  404. return c * sqrt(1 - pow(t, 2)) + b
  405. end
  406. local function inOutCirc(t, b, c, d)
  407. t = t / d * 2
  408. if t < 1 then
  409. return -c / 2 * (sqrt(1 - t * t) - 1) + b
  410. else
  411. t = t - 2
  412. return c / 2 * (sqrt(1 - t * t) + 1) + b
  413. end
  414. end
  415. local function outInCirc(t, b, c, d)
  416. if t < d / 2 then
  417. return outCirc(t * 2, b, c / 2, d)
  418. else
  419. return inCirc(t * 2 - d, b + c / 2, c / 2, d)
  420. end
  421. end
  422. local function outElastic(t, b, c, d, a, p)
  423. if t == 0 then
  424. return b
  425. end
  426. t = t / d
  427. if t == 1 then
  428. return b + c
  429. end
  430. p = p or d * 0.3
  431. local s
  432. if not a or a < abs(c) then
  433. a = c
  434. s = p / 4
  435. else
  436. s = p / (2 * pi) * asin(c / a)
  437. end
  438. return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p) + c + b
  439. end
  440. local function inOutElastic(t, b, c, d, a, p)
  441. if t == 0 then
  442. return b
  443. end
  444. t = t / d * 2
  445. if t == 2 then
  446. return b + c
  447. end
  448. p = p or d * 0.44999999999999996
  449. a = a or 0
  450. local s
  451. if not a or a < abs(c) then
  452. a = c
  453. s = p / 4
  454. else
  455. s = p / (2 * pi) * asin(c / a)
  456. end
  457. if t < 1 then
  458. t = t - 1
  459. return -0.5 * (a * pow(2, 10 * t) * sin((t * d - s) * (2 * pi) / p)) + b
  460. else
  461. t = t - 1
  462. return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p) * 0.5 + c + b
  463. end
  464. end
  465. local function outInElastic(t, b, c, d, a, p)
  466. if t < d / 2 then
  467. return outElastic(t * 2, b, c / 2, d, a, p)
  468. else
  469. return inElastic(t * 2 - d, b + c / 2, c / 2, d, a, p)
  470. end
  471. end
  472. local inBack = function(t, b, c, d, s)
  473. s = s or 1.70158
  474. t = t / d
  475. return c * t * t * ((s + 1) * t - s) + b
  476. end
  477. local outBack = function(t, b, c, d, s)
  478. s = s or 1.70158
  479. t = t / d - 1
  480. return c * (t * t * ((s + 1) * t + s) + 1) + b
  481. end
  482. local inOutBack = function(t, b, c, d, s)
  483. s = s or 1.70158
  484. s = s * 1.525
  485. t = t / d * 2
  486. if t < 1 then
  487. return c / 2 * (t * t * ((s + 1) * t - s)) + b
  488. else
  489. t = t - 2
  490. return c / 2 * (t * t * ((s + 1) * t + s) + 2) + b
  491. end
  492. end
  493. local function outInBack(t, b, c, d, s)
  494. if t < d / 2 then
  495. return outBack(t * 2, b, c / 2, d, s)
  496. else
  497. return inBack(t * 2 - d, b + c / 2, c / 2, d, s)
  498. end
  499. end
  500. local outBounce
  501. local function inBounce(t, b, c, d)
  502. return c - outBounce(d - t, 0, c, d) + b
  503. end
  504. local function inOutBounce(t, b, c, d)
  505. if t < d / 2 then
  506. return inBounce(t * 2, 0, c, d) * 0.5 + b
  507. else
  508. return outBounce(t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b
  509. end
  510. end
  511. local function outInBounce(t, b, c, d)
  512. if t < d / 2 then
  513. return outBounce(t * 2, b, c / 2, d)
  514. else
  515. return inBounce(t * 2 - d, b + c / 2, c / 2, d)
  516. end
  517. end
  518. local easingStyles = {
  519. linear = linear,
  520. inQuad = inQuad,
  521. outQuad = outQuad,
  522. inOutQuad = inOutQuad,
  523. outInQuad = outInQuad,
  524. inCubic = inCubic,
  525. outCubic = outCubic,
  526. inOutCubic = inOutCubic,
  527. outInCubic = outInCubic,
  528. inQuart = inQuart,
  529. outQuart = outQuart,
  530. inOutQuart = inOutQuart,
  531. outInQuart = outInQuart,
  532. inQuint = inQuint,
  533. outQuint = outQuint,
  534. inOutQuint = inOutQuint,
  535. outInQuint = outInQuint,
  536. inSine = inSine,
  537. outSine = outSine,
  538. inOutSine = inOutSine,
  539. outInSine = outInSine,
  540. inExpo = inExpo,
  541. outExpo = outExpo,
  542. inOutExpo = inOutExpo,
  543. outInExpo = outInExpo,
  544. inCirc = inCirc,
  545. outCirc = outCirc,
  546. inOutCirc = inOutCirc,
  547. outInCirc = outInCirc,
  548. inElastic = inElastic,
  549. outElastic = outElastic,
  550. inOutElastic = inOutElastic,
  551. outInElastic = outInElastic,
  552. inBack = inBack,
  553. outBack = outBack,
  554. inOutBack = inOutBack,
  555. outInBack = outInBack,
  556. inBounce = inBounce,
  557. outBounce = outBounce,
  558. inOutBounce = inOutBounce,
  559. outInBounce = outInBounce
  560. }
  561. function Animation:init(keyframes, looped, priority)
  562. if looped == nil then
  563. looped = false
  564. end
  565. local self = setmetatable({}, {
  566. __index = Animation,
  567. __call = function(self, ...)
  568. return self
  569. end,
  570. __metatable = {}
  571. })
  572. self.keyframes = keyframes or {}
  573. self.looped = looped
  574. self.playing = false
  575. return self
  576. end
  577. function Animation:play(weld)
  578. if self.playing then
  579. self.playing = false
  580. end
  581. if weld == nil then
  582. return
  583. end
  584. self.playing = true
  585. return function()
  586. while self.playing do
  587. local lastSetFrame
  588. for i = 1, #self.keyframes do
  589. if not self.playing then
  590. break
  591. end
  592. local previousFrame
  593. if i == 1 then
  594. previousFrame = weld.C0
  595. elseif self.keyframes[i - 1].pause then
  596. previousFrame = lastSetFrame
  597. else
  598. previousFrame = self.keyframes[i - 1].CFrame
  599. end
  600. local currentFrame = self.keyframes[i].CFrame
  601. if self.keyframes[i].pause == nil or self.keyframes[i].pause == false then
  602. lastSetFrame = currentFrame
  603. for t = 0, self.keyframes[i].duration, 0.016666666666666666 do
  604. if not self.playing then
  605. break
  606. end
  607. local theta = self.keyframes[i]:getTheta(t)
  608. weld.C0 = previousFrame:lerp(currentFrame, theta)
  609. game:GetService("RunService").RenderStepped:wait()
  610. if not self.playing then
  611. break
  612. end
  613. end
  614. if self.playing then
  615. weld.C0 = currentFrame
  616. end
  617. else
  618. local start = tick()
  619. repeat
  620. wait()
  621. until tick() - start >= self.keyframes[i].duration or not self.playing
  622. end
  623. if not self.playing then
  624. break
  625. end
  626. end
  627. if not self.looped then
  628. self.playing = false
  629. break
  630. end
  631. end
  632. end
  633. end
  634. function Animation:stop()
  635. self.playing = false
  636. end
  637. function Keyframe:add(cframe, duration, style, pause)
  638. local self = setmetatable({}, {
  639. __index = Keyframe,
  640. __call = function(self, ...)
  641. return self
  642. end,
  643. __metatable = {}
  644. })
  645. self.ease = easingStyles[style] or easingStyles.linear
  646. self.CFrame = cframe or CFrame.new()
  647. self.duration = duration or 1
  648. self.pause = pause
  649. return self
  650. end
  651. function Keyframe:getTheta(timeElapsed)
  652. return self.ease(timeElapsed, 0, 1, self.duration)
  653. end
  654. function TakeDamage()
  655. end
  656. local voices = {
  657. 616576465,
  658. 877367823,
  659. 794070439,
  660. 877368036,
  661. 877370450
  662. }
  663. local hit_sfx = {553324113, 879339588}
  664. local AWeld = Instance.new("Motor")
  665. AWeld.Parent = Character
  666. AWeld.Part0 = Character["Left Arm"]
  667. AWeld.Part1 = part_2
  668. AWeld.C0 = CFrame.new(0, -1, 0.15) * CFrame.Angles(0, math.pi, 0)
  669. local KeyAnims = {
  670. UpKick = {
  671. H = Animation:init({
  672. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(75), math.rad(180), 0), 0.16, "inOutQuad"),
  673. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(55), math.rad(180), 0), 0.16, "inOutQuad")
  674. }, false),
  675. T = Animation:init({
  676. Keyframe:add(CFrame.Angles(math.rad(105), math.rad(180), 0), 0.16, "inOutQuad"),
  677. Keyframe:add(CFrame.Angles(math.rad(125), math.rad(180), 0), 0.14, "inOutQuad")
  678. }, false),
  679. RA = Animation:init({
  680. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(90), 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.16, "inOutQuad"),
  681. Keyframe:add(CFrame.new(1, 0.5, 0.4) * CFrame.Angles(math.rad(53), math.rad(90), 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.14, "OutCirc")
  682. }, false),
  683. LA = Animation:init({
  684. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-52), math.rad(-72), 0) * CFrame.Angles(math.rad(37), 0, 0), 0.16, "inOutQuad")
  685. }, false),
  686. RL = Animation:init({
  687. Keyframe:add(CFrame.new(1, -0.65, -0.85) * CFrame.Angles(math.rad(-36), math.rad(90), 0), 0.16, "inOutQuad"),
  688. Keyframe:add(CFrame.new(1, -0.5, -1.2) * CFrame.Angles(math.rad(-47), math.rad(90), 0), 0.14, "OutQuad")
  689. }, false),
  690. LL = Animation:init({
  691. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(-90), 0), 0.16, "inOutSine"),
  692. Keyframe:add(CFrame.new(-1, -1.1, 0) * CFrame.Angles(math.rad(-35), math.rad(-90), 0), 0.15, "OutExpo")
  693. }, false)
  694. },
  695. Punch = {
  696. H = Animation:init({
  697. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(200), math.rad(-69)), 0.2, "inOutQuad")
  698. }, false),
  699. T = Animation:init({
  700. Keyframe:add(CFrame.Angles(math.rad(70), math.rad(160), math.rad(69)), 0.18, "inOutQuad")
  701. }, false),
  702. RA = Animation:init({
  703. Keyframe:add(CFrame.new(1, 0.5, -0.3) * CFrame.Angles(math.rad(110), math.rad(90), 0) * CFrame.Angles(math.rad(-69), 0, 0), 0.18, "OutCirc")
  704. }, false),
  705. LA = Animation:init({
  706. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-52), math.rad(-52), 0) * CFrame.Angles(math.rad(37), 0, 0), 0.2, "inOutQuad")
  707. }, false),
  708. RL = Animation:init({
  709. Keyframe:add(CFrame.new(1, -0.65, -0.5) * CFrame.Angles(math.rad(-50), math.rad(90), 0), 0.18, "OutQuad")
  710. }, false),
  711. LL = Animation:init({
  712. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.18, "OutExpo")
  713. }, false)
  714. },
  715. UpperCut = {
  716. H = Animation:init({
  717. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(200), math.rad(-58)), 0.13, "inOutQuad"),
  718. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(160), math.rad(60)), 0.285, "inQuint")
  719. }, false),
  720. T = Animation:init({
  721. Keyframe:add(CFrame.Angles(math.rad(70), math.rad(160), math.rad(58)), 0.13, "inOutQuad"),
  722. Keyframe:add(CFrame.Angles(math.rad(70), math.rad(200), math.rad(-60)), 0.285, "inQuint")
  723. }, false),
  724. RA = Animation:init({
  725. Keyframe:add(CFrame.new(1, 0.5, -0.3) * CFrame.Angles(math.rad(90), math.rad(90), 0) * CFrame.Angles(math.rad(72), 0, 0), 0.13, "OutQuad"),
  726. Keyframe:add(CFrame.new(1, 0.5, -0.3) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.285, "inQuint")
  727. }, false),
  728. LA = Animation:init({
  729. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-52), 0) * CFrame.Angles(math.rad(37), 0, 0), 0.135, "inOutQuad"),
  730. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(135), math.rad(-52), 0) * CFrame.Angles(math.rad(10), math.rad(-60), 0), 0.285, "inQuint")
  731. }, false),
  732. RL = Animation:init({
  733. Keyframe:add(CFrame.new(1, -0.65, -0.5) * CFrame.Angles(math.rad(-50), math.rad(90), 0), 0.13, "inOutQuad"),
  734. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(90), 0), 0.285, "inQuint")
  735. }, false),
  736. LL = Animation:init({
  737. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(-90), 0), 0.13, "inOutQuad"),
  738. Keyframe:add(CFrame.new(-1, -0.65, -0.5) * CFrame.Angles(math.rad(-50), math.rad(-90), 0), 0.285, "inQuint")
  739. }, false)
  740. },
  741. Kick = {
  742. H = Animation:init({
  743. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(60), math.rad(180), math.rad(-52)), 0.32, "inOutSine"),
  744. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(60), math.rad(180), math.rad(-90)), 0.27, "outSine")
  745. }, false),
  746. T = Animation:init({
  747. Keyframe:add(CFrame.Angles(math.rad(120), math.rad(180), math.rad(52)), 0.32, "inOutSine"),
  748. Keyframe:add(CFrame.Angles(math.rad(120), math.rad(180), math.rad(90)), 0.32, "inOutSine")
  749. }, false),
  750. RA = Animation:init({
  751. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(80), math.rad(90), 0) * CFrame.Angles(math.rad(75), 0, 0), 0.32, "inOutSine")
  752. }, false),
  753. LA = Animation:init({
  754. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(-90), 0), 0.32, "inOutSine")
  755. }, false),
  756. RL = Animation:init({
  757. Keyframe:add(CFrame.new(1, -0.65, -0.62) * CFrame.Angles(math.rad(-43), math.rad(90), 0) * CFrame.Angles(math.rad(20), 0, 0), 0.285, "inOutQuart"),
  758. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-65), 0, 0), 0.23, "inBack")
  759. }, false),
  760. LL = Animation:init({
  761. Keyframe:add(CFrame.new(-1, -0.85, -0.5) * CFrame.Angles(math.rad(-50), math.rad(-90), 0), 0.32, "inOutSine"),
  762. Keyframe:add(CFrame.new(-1, -0.85, -0.5) * CFrame.Angles(math.rad(-50), math.rad(-90), 0) * CFrame.Angles(math.rad(17), 0, 0), 0.27, "outSine")
  763. }, false)
  764. },
  765. Stomp = {
  766. H = Animation:init({
  767. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(102), math.rad(180), 0), 0.32, "outBack")
  768. }, false),
  769. T = Animation:init({
  770. Keyframe:add(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(52), math.rad(180), 0), 0.32, "outBack")
  771. }, false),
  772. RA = Animation:init({
  773. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(36), math.rad(90), 0) * CFrame.Angles(math.rad(55), 0, 0), 0.32, "outBack")
  774. }, false),
  775. LA = Animation:init({
  776. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-18), math.rad(-90), 0), 0.32, "outBack")
  777. }, false),
  778. RL = Animation:init({
  779. Keyframe:add(CFrame.new(1, -0.2, -0.5) * CFrame.Angles(math.rad(38), math.rad(90), 0), 0.32, "outBack")
  780. }, false),
  781. LL = Animation:init({
  782. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.32, "outBack")
  783. }, false)
  784. },
  785. TimeStop = {
  786. H = Animation:init({
  787. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(180), math.rad(80)), 0.28, "inOutCubic")
  788. }, false),
  789. T = Animation:init({
  790. Keyframe:add(CFrame.Angles(math.rad(90), math.rad(180), math.rad(-80)), 0.28, "inOutCubic")
  791. }, false),
  792. RA = Animation:init({
  793. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-13), math.rad(90), 0) * CFrame.Angles(math.rad(-6), 0, 0), 0.28, "inOutCubic")
  794. }, false),
  795. LA = Animation:init({
  796. Keyframe:add(CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(82), math.rad(-90), 0) * CFrame.Angles(math.rad(-90), 0, 0), 0.28, "inOutCubic")
  797. }, false),
  798. RL = Animation:init({
  799. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.28, "inOutCubic")
  800. }, false),
  801. LL = Animation:init({
  802. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.28, "inOutCubic")
  803. }, false),
  804. Kni = Animation:init({
  805. Keyframe:add(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-50), 0, 0), 0.28, "inOutCubic")
  806. }, false)
  807. },
  808. SurroundTimeStop = {
  809. H = Animation:init({
  810. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(180), 0), 0.21, "linear"),
  811. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(115), math.rad(180), 0), 0.25, "linear")
  812. }, false),
  813. T = Animation:init({
  814. Keyframe:add(CFrame.Angles(math.rad(90), math.rad(180), 0), 0.21, "linear"),
  815. Keyframe:add(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(65), math.rad(180), 0), 0.25, "outQuad")
  816. }, false),
  817. RA = Animation:init({
  818. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(90), 0), 0.21, "linear"),
  819. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-36), math.rad(90), 0) * CFrame.Angles(math.rad(-35), 0, 0), 0.34, "inOutBack")
  820. }, false),
  821. LA = Animation:init({
  822. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(105), math.rad(-90), 0), 0.21, "linear"),
  823. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(82), math.rad(-90), 0) * CFrame.Angles(math.rad(34), 0, 0), 0.34, "inOutBack")
  824. }, false),
  825. RL = Animation:init({
  826. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.21, "linear"),
  827. Keyframe:add(CFrame.new(1, 0.55, -0.5) * CFrame.Angles(math.rad(25), math.rad(90), 0), 0.25, "outQuad")
  828. }, false),
  829. LL = Animation:init({
  830. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.21, "linear"),
  831. Keyframe:add(CFrame.new(-1, -0.2, -0.3) * CFrame.Angles(math.rad(-25), math.rad(-90), 0), 0.25, "outQuad")
  832. }, false)
  833. },
  834. Mooda = {
  835. H = Animation:init({
  836. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), math.rad(180), math.rad(-73)), 0.075, "inQuart"),
  837. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), math.rad(180), math.rad(71)), 0.075, "inQuart")
  838. }, true),
  839. T = Animation:init({
  840. Keyframe:add(CFrame.Angles(math.rad(80), math.rad(180), math.rad(75)), 0.075, "inQuart"),
  841. Keyframe:add(CFrame.Angles(math.rad(80), math.rad(180), math.rad(-75)), 0.075, "inQuart")
  842. }, true),
  843. RA = Animation:init({
  844. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(97 + ArmSpreadR), math.rad(90), 0) * CFrame.Angles(math.rad(-60), 0, 0), 0.075, "inQuart"),
  845. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(80), math.rad(90), 0) * CFrame.Angles(math.rad(-20), 0, 0), 0.075, "inQuart")
  846. }, true),
  847. LA = Animation:init({
  848. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(80), math.rad(-90), 0) * CFrame.Angles(math.rad(-20), 0, 0), 0.075, "inQuart"),
  849. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(97 + ArmSpreadL), math.rad(-90), 0) * CFrame.Angles(math.rad(-60), 0, 0), 0.075, "inQuart")
  850. }, true),
  851. RL = Animation:init({
  852. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(15), math.rad(30), 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.075, "inQuart"),
  853. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.075, "inQuart")
  854. }, true),
  855. LL = Animation:init({
  856. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.075, "inQuart"),
  857. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(15), math.rad(-30), 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.075, "inQuart")
  858. }, true)
  859. }
  860. }
  861. local Hitbox = Instance.new("Part")
  862. Hitbox.Size = Vector3.new(4.2, 5, 3.5)
  863. Hitbox.CanCollide = false
  864. Hitbox.Transparency = 1
  865. local Hit_Sound = Instance.new("Sound")
  866. Hit_Sound.Parent = Hitbox
  867. Hit_Sound.SoundId = "rbxassetid://" .. hit_sfx[math.random(1, #hit_sfx)]
  868. Hit_Sound.Pitch = math.random(0.9, 1.4)
  869. Hit_Sound.Volume = 3.5
  870. function attackseq()
  871. if not Attacking and PlayMainAnims and AttackSeq == 0 and 0 < Character.Humanoid.Health and not isKneeing then
  872. Attacking = true
  873. attac = true
  874. isKneeing = true
  875. PlayMainAnims = false
  876. do
  877. local HitCopy = Hitbox:Clone()
  878. HitCopy.Parent = Character
  879. local HitWeld = Instance.new("Motor")
  880. HitWeld.Parent = Character
  881. HitWeld.Part0 = RootPart
  882. HitWeld.Part1 = HitCopy
  883. local dmgdb = false
  884. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  885. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  886. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  887. dmgdb = true
  888. HitCopy:WaitForChild("Sound"):Resume()
  889. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  890. local Push = Instance.new("BodyVelocity")
  891. Push.Parent = Hit.Parent:WaitForChild("Head")
  892. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  893. Push.Velocity = (RootPart.CFrame.upVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 4.3
  894. wait(0.45)
  895. Push:Remove()
  896. wait(1)
  897. dmgdb = false
  898. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  899. dmgdb = true
  900. HitCopy:WaitForChild("Sound"):Resume()
  901. timeDamage = timeDamage + 8
  902. spawn(function()
  903. while wait() do
  904. if not HumanTimeStop then
  905. TakeDamage(Hum, timeDamage)
  906. timeDamage = 0
  907. end
  908. end
  909. end)
  910. wait(1.45)
  911. dmgdb = false
  912. end
  913. end)
  914. local voice = Instance.new("Sound")
  915. voice.Parent = Character.Head
  916. voice.SoundId = "rbxassetid://" .. voices[math.random(1, #voices)]
  917. voice.PlayOnRemove = false
  918. voice:Play()
  919. spawn(function()
  920. local H = KeyAnims.UpKick.H:play(Head)
  921. H()
  922. end)
  923. spawn(function()
  924. local T = KeyAnims.UpKick.T:play(Torso)
  925. T()
  926. end)
  927. spawn(function()
  928. local RA = KeyAnims.UpKick.RA:play(RightArm)
  929. RA()
  930. end)
  931. spawn(function()
  932. local LA = KeyAnims.UpKick.LA:play(LeftArm)
  933. LA()
  934. end)
  935. spawn(function()
  936. local RL = KeyAnims.UpKick.RL:play(RightLeg)
  937. RL()
  938. end)
  939. spawn(function()
  940. local LL = KeyAnims.UpKick.LL:play(LeftLeg)
  941. LL()
  942. end)
  943. local Vel = Instance.new("BodyVelocity")
  944. Vel.Parent = Character.Torso
  945. Vel.MaxForce = Vector3.new(9000000000, 9900000000, 18000000000)
  946. Vel.Velocity = (RootPart.CFrame.upVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 4.2
  947. wait(0.315)
  948. HitCopy:Remove()
  949. Vel:Remove()
  950. Attacking = false
  951. PlayMainAnims = true
  952. AttackSeq = 1
  953. wait(1)
  954. isKneeing = false
  955. end
  956. elseif not Attacking and PlayMainAnims and AttackSeq == 1 and 0 < Character.Humanoid.Health then
  957. Attacking = true
  958. PlayMainAnims = false
  959. do
  960. local HitCopy = Hitbox:Clone()
  961. HitCopy.Parent = Character
  962. local HitWeld = Instance.new("Motor")
  963. HitWeld.Parent = Character
  964. HitWeld.Part0 = RootPart
  965. HitWeld.Part1 = HitCopy
  966. local dmgdb = false
  967. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  968. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  969. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  970. dmgdb = true
  971. HitCopy:WaitForChild("Sound"):Resume()
  972. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  973. local Push = Instance.new("BodyVelocity")
  974. Push.Parent = Hit.Parent:WaitForChild("Head")
  975. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  976. Push.Velocity = (RootPart.CFrame.lookVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 2.4
  977. wait(0.45)
  978. Push:Remove()
  979. wait(1)
  980. dmgdb = false
  981. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  982. dmgdb = true
  983. HitCopy:WaitForChild("Sound"):Resume()
  984. timeDamage = timeDamage + 7
  985. spawn(function()
  986. while wait() do
  987. if not HumanTimeStop then
  988. TakeDamage(Hum, timeDamage)
  989. timeDamage = 0
  990. end
  991. end
  992. end)
  993. wait(1.45)
  994. dmgdb = false
  995. end
  996. end)
  997. spawn(function()
  998. local H = KeyAnims.Punch.H:play(Head)
  999. H()
  1000. end)
  1001. spawn(function()
  1002. local T = KeyAnims.Punch.T:play(Torso)
  1003. T()
  1004. end)
  1005. spawn(function()
  1006. local RA = KeyAnims.Punch.RA:play(RightArm)
  1007. RA()
  1008. end)
  1009. spawn(function()
  1010. local LA = KeyAnims.Punch.LA:play(LeftArm)
  1011. LA()
  1012. end)
  1013. spawn(function()
  1014. local RL = KeyAnims.Punch.RL:play(RightLeg)
  1015. RL()
  1016. end)
  1017. spawn(function()
  1018. local LL = KeyAnims.Punch.LL:play(LeftLeg)
  1019. LL()
  1020. end)
  1021. local Vel = Instance.new("BodyVelocity")
  1022. Vel.Parent = Character.Torso
  1023. Vel.MaxForce = Vector3.new(9000000000, 9900000000, 11700000000)
  1024. Vel.Velocity = (RootPart.CFrame.lookVector * 1.4 * (450 / (Character.Torso:GetMass() * 1.1)) / 5 + Vector3.new(0, 0.375, 5)) / 2.45
  1025. wait(0.35)
  1026. HitCopy:Remove()
  1027. Vel:Remove()
  1028. Attacking = false
  1029. PlayMainAnims = true
  1030. AttackSeq = 2
  1031. end
  1032. elseif not Attacking and PlayMainAnims and AttackSeq == 2 and 0 < Character.Humanoid.Health then
  1033. PlayMainAnims = false
  1034. Attacking = true
  1035. do
  1036. local HitCopy = Hitbox:Clone()
  1037. HitCopy.Parent = Character
  1038. local HitWeld = Instance.new("Motor")
  1039. HitWeld.Parent = Character
  1040. HitWeld.Part0 = RootPart
  1041. HitWeld.Part1 = HitCopy
  1042. local dmgdb = false
  1043. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  1044. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  1045. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  1046. dmgdb = true
  1047. HitCopy:WaitForChild("Sound").SoundId = "rbxassetid://730099250"
  1048. HitCopy:WaitForChild("Sound"):Resume()
  1049. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  1050. local Push = Instance.new("BodyVelocity")
  1051. Push.Parent = Hit.Parent:WaitForChild("Head")
  1052. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  1053. Push.Velocity = (RootPart.CFrame.lookVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 2.45
  1054. wait(0.45)
  1055. Push:Remove()
  1056. wait(1)
  1057. dmgdb = false
  1058. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  1059. dmgdb = true
  1060. HitCopy:WaitForChild("Sound"):Resume()
  1061. timeDamage = timeDamage + 12
  1062. spawn(function()
  1063. while wait() do
  1064. if not HumanTimeStop then
  1065. TakeDamage(Hum, timeDamage)
  1066. timeDamage = 0
  1067. end
  1068. end
  1069. end)
  1070. wait(1.45)
  1071. dmgdb = false
  1072. end
  1073. end)
  1074. local slash = Instance.new("Sound")
  1075. slash.Parent = Character["Left Arm"]
  1076. slash.SoundId = "rbxassetid://200633029"
  1077. slash.Pitch = math.random(1, 2)
  1078. slash.Volume = 1.2
  1079. slash:Play()
  1080. spawn(function()
  1081. local H = KeyAnims.UpperCut.H:play(Head)
  1082. H()
  1083. end)
  1084. spawn(function()
  1085. local T = KeyAnims.UpperCut.T:play(Torso)
  1086. T()
  1087. end)
  1088. spawn(function()
  1089. local RA = KeyAnims.UpperCut.RA:play(RightArm)
  1090. RA()
  1091. end)
  1092. spawn(function()
  1093. local LA = KeyAnims.UpperCut.LA:play(LeftArm)
  1094. LA()
  1095. end)
  1096. spawn(function()
  1097. local RL = KeyAnims.UpperCut.RL:play(RightLeg)
  1098. RL()
  1099. end)
  1100. spawn(function()
  1101. local LL = KeyAnims.UpperCut.LL:play(LeftLeg)
  1102. LL()
  1103. end)
  1104. local Vel = Instance.new("BodyVelocity")
  1105. Vel.Parent = Character.Torso
  1106. Vel.MaxForce = Vector3.new(9000000000, 9900000000, 11700000000)
  1107. Vel.Velocity = (RootPart.CFrame.lookVector * 1.4 * (450 / (Character.Torso:GetMass() * 1.1)) / 5.5 + Vector3.new(0, -0.375, 5)) / 2.5
  1108. wait(0.55)
  1109. HitCopy:Remove()
  1110. Vel:Remove()
  1111. PlayMainAnims = true
  1112. Attacking = false
  1113. AttackSeq = 3
  1114. end
  1115. elseif not Attacking and PlayMainAnims and AttackSeq == 3 and 0 < Character.Humanoid.Health then
  1116. PlayMainAnims = false
  1117. Attacking = true
  1118. do
  1119. local HitCopy = Hitbox:Clone()
  1120. HitCopy.Parent = Character
  1121. local HitWeld = Instance.new("Motor")
  1122. HitWeld.Parent = Character
  1123. HitWeld.Part0 = RootPart
  1124. HitWeld.Part1 = HitCopy
  1125. local dmgdb = false
  1126. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  1127. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  1128. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  1129. dmgdb = true
  1130. HitCopy:WaitForChild("Sound"):Resume()
  1131. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  1132. local Push = Instance.new("BodyVelocity")
  1133. Push.Parent = Hit.Parent:WaitForChild("Head")
  1134. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  1135. Push.Velocity = (RootPart.CFrame.lookVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 2
  1136. wait(0.45)
  1137. Push:Remove()
  1138. wait(1)
  1139. dmgdb = false
  1140. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  1141. dmgdb = true
  1142. HitCopy:WaitForChild("Sound"):Resume()
  1143. timeDamage = timeDamage + 9
  1144. spawn(function()
  1145. while wait() do
  1146. if not HumanTimeStop then
  1147. TakeDamage(Hum, timeDamage)
  1148. timeDamage = 0
  1149. end
  1150. end
  1151. end)
  1152. wait(1.45)
  1153. dmgdb = false
  1154. end
  1155. end)
  1156. local voice = Instance.new("Sound")
  1157. voice.Parent = Character.Head
  1158. voice.SoundId = "rbxassetid://" .. voices[math.random(1, #voices)]
  1159. voice.PlayOnRemove = false
  1160. voice:Play()
  1161. spawn(function()
  1162. local H = KeyAnims.Kick.H:play(Head)
  1163. H()
  1164. end)
  1165. spawn(function()
  1166. local T = KeyAnims.Kick.T:play(Torso)
  1167. T()
  1168. end)
  1169. spawn(function()
  1170. local RA = KeyAnims.Kick.RA:play(RightArm)
  1171. RA()
  1172. end)
  1173. spawn(function()
  1174. local LA = KeyAnims.Kick.LA:play(LeftArm)
  1175. LA()
  1176. end)
  1177. spawn(function()
  1178. local RL = KeyAnims.Kick.RL:play(RightLeg)
  1179. RL()
  1180. end)
  1181. spawn(function()
  1182. local LL = KeyAnims.Kick.LL:play(LeftLeg)
  1183. LL()
  1184. end)
  1185. local Vel = Instance.new("BodyVelocity")
  1186. Vel.Parent = Character.Torso
  1187. Vel.MaxForce = Vector3.new(9000000000, 9900000000, 11700000000)
  1188. Vel.Velocity = (RootPart.CFrame.lookVector * 1.4 * (450 / (Character.Torso:GetMass() * 1.1)) / 5.5 + Vector3.new(0, -0.375, 5)) / 1.9
  1189. wait(0.715)
  1190. HitCopy:Remove()
  1191. Vel:Remove()
  1192. PlayMainAnims = true
  1193. Attacking = false
  1194. AttackSeq = 4
  1195. end
  1196. elseif not Attacking and PlayMainAnims and AttackSeq == 4 and 0 < Character.Humanoid.Health then
  1197. PlayMainAnims = false
  1198. Attacking = true
  1199. do
  1200. local HitCopy = Hitbox:Clone()
  1201. HitCopy.Size = Vector3.new(4.2, 2.5, 3.5)
  1202. HitCopy.Parent = Character
  1203. local HitWeld = Instance.new("Motor")
  1204. HitWeld.Parent = Character
  1205. HitWeld.Part0 = RootPart
  1206. HitWeld.Part1 = HitCopy
  1207. HitWeld.C0 = CFrame.new(0, -3, 0)
  1208. local dmgdb = false
  1209. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  1210. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  1211. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  1212. dmgdb = true
  1213. HitCopy:WaitForChild("Sound"):Resume()
  1214. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  1215. local Push = Instance.new("BodyVelocity")
  1216. Push.Parent = Hit.Parent:WaitForChild("HumanoidRootPart")
  1217. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  1218. Push.Velocity = (RootPart.CFrame.upVector / -6 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 4
  1219. wait(0.45)
  1220. Push:Remove()
  1221. wait(1)
  1222. dmgdb = false
  1223. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  1224. dmgdb = true
  1225. HitCopy:WaitForChild("Sound"):Resume()
  1226. timeDamage = timeDamage + 7
  1227. spawn(function()
  1228. while wait() do
  1229. if not HumanTimeStop then
  1230. TakeDamage(Hum, timeDamage)
  1231. timeDamage = 0
  1232. end
  1233. end
  1234. end)
  1235. wait(1.45)
  1236. dmgdb = false
  1237. end
  1238. end)
  1239. local voice = Instance.new("Sound")
  1240. voice.Parent = Character.Head
  1241. voice.SoundId = "rbxassetid://" .. voices[math.random(1, #voices)]
  1242. voice.PlayOnRemove = false
  1243. voice:Play()
  1244. spawn(function()
  1245. local H = KeyAnims.Stomp.H:play(Head)
  1246. H()
  1247. end)
  1248. spawn(function()
  1249. local T = KeyAnims.Stomp.T:play(Torso)
  1250. T()
  1251. end)
  1252. spawn(function()
  1253. local RA = KeyAnims.Stomp.RA:play(RightArm)
  1254. RA()
  1255. end)
  1256. spawn(function()
  1257. local LA = KeyAnims.Stomp.LA:play(LeftArm)
  1258. LA()
  1259. end)
  1260. spawn(function()
  1261. local RL = KeyAnims.Stomp.RL:play(RightLeg)
  1262. RL()
  1263. end)
  1264. spawn(function()
  1265. local LL = KeyAnims.Stomp.LL:play(LeftLeg)
  1266. LL()
  1267. end)
  1268. wait(0.65)
  1269. HitCopy:Remove()
  1270. AttackSeq = 0
  1271. Attacking = false
  1272. PlayMainAnims = true
  1273. attac = false
  1274. end
  1275. end
  1276. end
  1277. local Cola = BrickColor.new("New Yeller")
  1278. local rCola = Cola.Color
  1279. local Attach0 = Instance.new("Attachment")
  1280. Attach0.Parent = Character:WaitForChild("Head")
  1281. local Attach1 = Instance.new("Attachment")
  1282. Attach1.Parent = RealTorso
  1283. local Trail = Instance.new("Trail")
  1284. Trail.Color = ColorSequence.new(rCola)
  1285. Trail.Enabled = false
  1286. Trail.Transparency = NumberSequence.new({
  1287. NumberSequenceKeypoint.new(0, 0.25, 0),
  1288. NumberSequenceKeypoint.new(1, 1, 0)
  1289. })
  1290. Trail.Parent = Character
  1291. Trail.Attachment0 = Attach0
  1292. Trail.Attachment1 = Attach1
  1293. local AnchoredTable = {}
  1294. function anchorparts(parent)
  1295. spawn(function()
  1296. for i, x in pairs(r6) do
  1297. if parent:WaitForChild("Humanoid").RigType == Enum.HumanoidRigType.R6 and parent:WaitForChild(x) and parent[x]:IsA("BasePart") and parent[x].Anchored == false and not parent[x]:IsDescendantOf(Character) then
  1298. parent[x].Anchored = true
  1299. table.insert(AnchoredTable, x)
  1300. else
  1301. return nil
  1302. end
  1303. end
  1304. end)
  1305. for i, x in pairs(r15) do
  1306. if parent:WaitForChild("Humanoid").RigType == Enum.HumanoidRigType.R15 and parent:WaitForChild(x) and parent[x]:IsA("BasePart") and parent[x].Anchored == false and not parent[x]:IsDescendantOf(Character) then
  1307. parent[x].Anchored = true
  1308. table.insert(AnchoredTable, x)
  1309. else
  1310. return nil
  1311. end
  1312. end
  1313. end
  1314. function unanchorparts(parent)
  1315. for _, v in pairs(parent:GetChildren()) do
  1316. if v:IsA("BasePart") and v.Anchored == true then
  1317. for i = 1, #AnchoredTable do
  1318. if AnchoredTable[i] == v.Name then
  1319. v.Anchored = false
  1320. HumanTimeStop = false
  1321. end
  1322. end
  1323. end
  1324. end
  1325. end
  1326. local canTimeStop = false
  1327. local DIIIOO = Instance.new("Sound")
  1328. DIIIOO.Parent = Character.Head
  1329. DIIIOO.SoundId = "rbxassetid://616576400"
  1330. function TimeStop(a, State, b)
  1331. if State == Enum.UserInputState.Begin and not Attacking and PlayMainAnims and not canTimeStop and CharHum.Health > 30 then
  1332. canTimeStop = true
  1333. Attacking = true
  1334. PlayMainAnims = false
  1335. DIIIOO:Resume()
  1336. Trail.Enabled = true
  1337. spawn(function()
  1338. local H = KeyAnims.TimeStop.H:play(Head)
  1339. H()
  1340. end)
  1341. spawn(function()
  1342. local T = KeyAnims.TimeStop.T:play(Torso)
  1343. T()
  1344. end)
  1345. spawn(function()
  1346. local RA = KeyAnims.TimeStop.RA:play(RightArm)
  1347. RA()
  1348. end)
  1349. spawn(function()
  1350. local LA = KeyAnims.TimeStop.LA:play(LeftArm)
  1351. LA()
  1352. end)
  1353. spawn(function()
  1354. local RL = KeyAnims.TimeStop.RL:play(RightLeg)
  1355. RL()
  1356. end)
  1357. spawn(function()
  1358. local LL = KeyAnims.TimeStop.LL:play(LeftLeg)
  1359. LL()
  1360. end)
  1361. spawn(function()
  1362. local Kn = KeyAnims.TimeStop.Kni:play(AWeld)
  1363. Kn()
  1364. end)
  1365. do
  1366. local dmgdb = false
  1367. local HitDetect = RealTorso.Touched:Connect(function(Hit)
  1368. local Human = Hit.Parent:FindFirstChild("Humanoid")
  1369. if Human and Human.Parent.Name ~= Player.Name and Human.Health > 0 and not dmgdb then
  1370. dmgdb = true
  1371. HumanTimeStop = true
  1372. TakeDamage(Human, 16)
  1373. anchorparts(Human.Parent)
  1374. wait(3.2)
  1375. HumanTimeStop = false
  1376. unanchorparts(Human.Parent)
  1377. dmgdb = false
  1378. end
  1379. end)
  1380. wait(0.2)
  1381. local passRayCast = Ray.new(RootPart.CFrame.p, RootPart.CFrame.lookVector.unit * 30)
  1382. local Hit, Pos, Surface = workspace:FindPartOnRay(passRayCast, Character)
  1383. local TpPart = Instance.new("Part")
  1384. TpPart.Parent = Character
  1385. TpPart.Size = Vector3.new(1, 1, 1)
  1386. TpPart.CanCollide = false
  1387. TpPart.Anchored = true
  1388. TpPart.Transparency = 1
  1389. TpPart.CFrame = CFrame.new(Pos) * CFrame.Angles(0, math.rad(RootPart.Rotation.Y), 0)
  1390. RealTorso.CFrame = TpPart.CFrame
  1391. wait(0.7)
  1392. HitDetect:disconnect()
  1393. Trail.Enabled = false
  1394. TpPart:Remove()
  1395. Attacking = false
  1396. PlayMainAnims = true
  1397. wait(15)
  1398. canTimeStop = false
  1399. end
  1400. end
  1401. end
  1402. function surroundTimeStop(a, State, b)
  1403. if State == Enum.UserInputState.Begin and not Attacking and PlayMainAnims and not canTimeStop and CharHum.Health > 30 then
  1404. Attacking = true
  1405. canTimeStop = true
  1406. CharHum.WalkSpeed = 0
  1407. PlayMainAnims = false
  1408. local Wry = Instance.new("Sound")
  1409. Wry.Parent = Character
  1410. Wry.SoundId = "rbxassetid://955633944"
  1411. Wry:Play()
  1412. spawn(function()
  1413. local H = KeyAnims.SurroundTimeStop.H:play(Head)
  1414. H()
  1415. end)
  1416. spawn(function()
  1417. local T = KeyAnims.SurroundTimeStop.T:play(Torso)
  1418. T()
  1419. end)
  1420. spawn(function()
  1421. local RA = KeyAnims.SurroundTimeStop.RA:play(RightArm)
  1422. RA()
  1423. end)
  1424. spawn(function()
  1425. local LA = KeyAnims.SurroundTimeStop.LA:play(LeftArm)
  1426. LA()
  1427. end)
  1428. spawn(function()
  1429. local RL = KeyAnims.SurroundTimeStop.RL:play(RightLeg)
  1430. RL()
  1431. end)
  1432. spawn(function()
  1433. local LL = KeyAnims.SurroundTimeStop.LL:play(LeftLeg)
  1434. LL()
  1435. end)
  1436. local HitPart = Instance.new("Part")
  1437. HitPart.Parent = Character.Torso
  1438. HitPart.CanCollide = false
  1439. HitPart.Anchored = true
  1440. HitPart.CFrame = HitPart.Parent.CFrame
  1441. HitPart.Transparency = 0.8
  1442. HitPart.Size = Vector3.new(30, 20, 30)
  1443. local function HitDetect(hit)
  1444. local Hum = hit.Parent:FindFirstChild("Humanoid")
  1445. if Hum and Hum.Parent.Name ~= Player.Name and not HumanTimeStop then
  1446. anchorparts(Hum.Parent)
  1447. wait(5)
  1448. unanchorparts(Hum.Parent)
  1449. end
  1450. end
  1451. HitPart.Touched:Connect(HitDetect)
  1452. wait(1.8)
  1453. CharHum.WalkSpeed = 16
  1454. Attacking = false
  1455. PlayMainAnims = true
  1456. for i = 1,15 do
  1457. HitPart.Transparency = HitPart.Transparency + 0.1
  1458. end
  1459. HitPart:Destroy()
  1460. wait(20)
  1461. Wry:Remove()
  1462. canTimeStop = false
  1463. end
  1464. end
  1465. local Muda = false
  1466. local MudaSound = Instance.new("Sound")
  1467. MudaSound.Parent = RealTorso
  1468. MudaSound.SoundId = "rbxassetid://601465752"
  1469. MudaSound.Looped = true
  1470. MudaSound.Volume = 3
  1471. function MudaMuda(a, State, b)
  1472. if State == Enum.UserInputState.Begin and not Attacking and PlayMainAnims and not Muda then
  1473. mud = true
  1474. PlayMainAnims = false
  1475. Attacking = true
  1476. Muda = true
  1477. CharHum.WalkSpeed = 6.5
  1478. spawn(function()
  1479. local H = KeyAnims.Mooda.H:play(Head)
  1480. H()
  1481. end)
  1482. spawn(function()
  1483. local T = KeyAnims.Mooda.T:play(Torso)
  1484. T()
  1485. end)
  1486. spawn(function()
  1487. local RA = KeyAnims.Mooda.RA:play(RightArm)
  1488. RA()
  1489. end)
  1490. spawn(function()
  1491. local LA = KeyAnims.Mooda.LA:play(LeftArm)
  1492. LA()
  1493. end)
  1494. spawn(function()
  1495. local RL = KeyAnims.Mooda.RL:play(RightLeg)
  1496. RL()
  1497. end)
  1498. spawn(function()
  1499. local LL = KeyAnims.Mooda.LL:play(LeftLeg)
  1500. LL()
  1501. end)
  1502. spawn(function()
  1503. while Muda do
  1504. do
  1505. local HitCopy = Hitbox:Clone()
  1506. HitCopy.Parent = Character
  1507. local HitWeld = Instance.new("Motor")
  1508. HitWeld.Parent = Character
  1509. HitWeld.Part0 = RootPart
  1510. HitWeld.Part1 = HitCopy
  1511. HitCopy:WaitForChild("Sound").Parent = RootPart
  1512. local dmgdb = false
  1513. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  1514. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  1515. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  1516. RootPart:WaitForChild("Sound"):Play()
  1517. dmgdb = true
  1518. TakeDamage(Hum, 2)
  1519. local Push = Instance.new("BodyVelocity")
  1520. Push.Parent = Hit.Parent:WaitForChild("HumanoidRootPart")
  1521. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  1522. Push.Velocity = (RootPart.CFrame.lookVector / 4 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 4
  1523. wait(0.45)
  1524. Push:Remove()
  1525. wait(0.08)
  1526. dmgdb = false
  1527. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  1528. dmgdb = true
  1529. timeDamage = timeDamage + 2
  1530. RootPart:WaitForChild("Sound"):Play()
  1531. spawn(function()
  1532. while wait() do
  1533. if not HumanTimeStop then
  1534. TakeDamage(Hum, timeDamage)
  1535. timeDamage = 0
  1536. end
  1537. end
  1538. end)
  1539. wait(0.08)
  1540. dmgdb = false
  1541. end
  1542. end)
  1543. wait(0.05)
  1544. HitCopy:Remove()
  1545. if Muda == false then
  1546. else
  1547. wait()
  1548. end
  1549. end
  1550. end
  1551. end)
  1552. ArmSpreadL = math.random(-30, 30)
  1553. ArmSpreadR = math.random(-30, 30)
  1554. MudaSound:Resume()
  1555. elseif State == Enum.UserInputState.End and Attacking and not PlayMainAnims and Muda then
  1556. PlayMainAnims = true
  1557. mud = false
  1558. Attacking = false
  1559. Muda = false
  1560. spawn(function()
  1561. KeyAnims.Mooda.H:stop()
  1562. end)
  1563. spawn(function()
  1564. KeyAnims.Mooda.T:stop()
  1565. end)
  1566. spawn(function()
  1567. KeyAnims.Mooda.RA:stop()
  1568. end)
  1569. spawn(function()
  1570. KeyAnims.Mooda.LA:stop()
  1571. end)
  1572. spawn(function()
  1573. KeyAnims.Mooda.RL:stop()
  1574. end)
  1575. spawn(function()
  1576. KeyAnims.Mooda.LL:stop()
  1577. end)
  1578. MudaSound:Stop()
  1579. CharHum.WalkSpeed = 16
  1580. end
  1581. end
  1582.  
  1583. char["Left Arm"].Touched:connect(function(hit)
  1584. if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and mud then
  1585. local targ = hit.Parent
  1586. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1587. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2/2/2)
  1588. elseif hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and attac then
  1589. local targ = hit.Parent
  1590. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1591. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2/2)
  1592. end
  1593. end)
  1594.  
  1595. char["Right Arm"].Touched:connect(function(hit)
  1596. if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and mud then
  1597. local targ = hit.Parent
  1598. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1599. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2/2/2)
  1600. elseif hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and attac then
  1601. local targ = hit.Parent
  1602. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1603. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2/2)
  1604. end
  1605. end)
  1606.  
  1607. Mouse.Button1Down:Connect(attackseq)
  1608. attac = true
  1609. local FreeFalling = false
  1610. local Jumping = false
  1611. Run.RenderStepped:Connect(function()
  1612. local JumpRay = Ray.new(RootPart.CFrame.p, RootPart.CFrame.upVector.unit * -99999999999999)
  1613. local hit, pos, surf = workspace:FindPartOnRay(JumpRay, Character)
  1614. if PlayMainAnims then
  1615. AWeld.C0 = CFrame.new(0, -1, 0.15) * CFrame.Angles(0, math.pi, 0)
  1616. local CurrentAnimation = "Idle"
  1617. local JumpDist = (pos - RootPart.CFrame.p).magnitude
  1618. if Character.Humanoid.Jump then
  1619. Jumping = true
  1620. else
  1621. Jumping = false
  1622. end
  1623. if (RealTorso.Velocity - Vector3.new(1, 0, 1)).magnitude < 2 and JumpDist < 3 then
  1624. CurrentAnimation = "Idle"
  1625. elseif (RealTorso.Velocity - Vector3.new(1, 0, 1)).magnitude > 2 and JumpDist < 3 then
  1626. CurrentAnimation = "Walking"
  1627. elseif JumpDist > 3 and 3 < RootPart.Velocity.Y and not Attacking and not isKneeing then
  1628. CurrentAnimation = "Jumping"
  1629. elseif JumpDist > 3 and RootPart.Velocity.Y < -3 and not Attacking and not isKneeing then
  1630. CurrentAnimation = "Falling"
  1631. end
  1632. if CurrentAnimation == "Idle" then
  1633. Head.C0 = Head.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(95 + 10.5 * math.cos(tick() * 2.4) / 1.65), math.rad(170), math.rad(-38)), 0.16)
  1634. Torso.C0 = Torso.C0:lerp(CFrame.Angles(math.rad(80 + 6 * math.sin(tick() * 2.4)), math.rad(180), math.rad(38)), 0.16)
  1635. LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1, 0.5 + math.sin(tick() * 2.4) / 10, 0) * CFrame.Angles(0, math.rad(-90), math.rad(17)) * CFrame.Angles(math.rad(-14 + 3 * math.cos(tick() * 2.4)), 0, 0), 0.16)
  1636. RightArm.C0 = RightArm.C0:lerp(CFrame.new(1, 0.5 + math.sin(tick() * 2.4) / 10, 0) * CFrame.Angles(0, math.rad(90), math.rad(15)) * CFrame.Angles(math.rad(-11 + 3 * math.cos(tick() * 2.4)), 0, 0), 0.16)
  1637. LeftLeg.C0 = LeftLeg.C0:lerp(CFrame.new(-1, -1.2 + math.sin(tick() * 2.4) / 6, 0.175) * CFrame.Angles(0, math.rad(-78), 0) * CFrame.Angles(math.rad(6 * math.sin(-tick() * 2.4)), 0, math.rad(6 * math.sin(tick() * 2.4))), 0.16)
  1638. RightLeg.C0 = RightLeg.C0:lerp(CFrame.new(1, -1, 0.175) * CFrame.Angles(0, math.rad(47), 0) * CFrame.Angles(0, 0, math.rad(9 + 6 * math.sin(-tick() * 2.4))), 0.16)
  1639. elseif CurrentAnimation == "Walking" then
  1640. Head.C0 = Head.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(112 - 5 * math.sin(tick() * 5.75)), math.rad(180), 0), 0.26)
  1641. Torso.C0 = Torso.C0:lerp(CFrame.new(0, 0.1 + math.sin(tick() * 11.5) / 11, 0) * CFrame.Angles(math.rad(70 + 6 * math.sin(tick() * 5.75)), math.rad(180), 0), 0.26)
  1642. RightArm.C0 = RightArm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(86 + 5 * math.sin(tick() * 5.75)), math.rad(90), 0) * CFrame.Angles(math.rad(74 + 2 * math.cos(tick() * 5.75)), 0, 0), 0.26)
  1643. LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-30 + 16 * math.sin(-tick() * 5.75)), math.rad(-78), 0), 0.26)
  1644. RightLeg.C0 = RightLeg.C0:lerp(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-28 * math.sin(-tick() * 5.75)), math.rad(90), 0), 0.26)
  1645. LeftLeg.C0 = LeftLeg.C0:lerp(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-28 * math.sin(tick() * 5.75)), math.rad(-90), 0), 0.26)
  1646. elseif CurrentAnimation == "Jumping" then
  1647. Head.C0 = Head.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(70), math.rad(180), 0), 0.35)
  1648. Torso.C0 = Torso.C0:lerp(CFrame.Angles(math.rad(110), math.rad(180), 0), 0.35)
  1649. RightArm.C0 = RightArm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(90), 0), 0.35)
  1650. LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(-90), 0), 0.35)
  1651. RightLeg.C0 = RightLeg.C0:lerp(CFrame.new(1, -0.6, -0.5) * CFrame.Angles(math.rad(-20), math.rad(90), 0), 0.35)
  1652. LeftLeg.C0 = LeftLeg.C0:lerp(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-42), math.rad(-90), 0), 0.35)
  1653. elseif CurrentAnimation == "Falling" then
  1654. Head.C0 = Head.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(110), math.rad(180), 0), 0.35)
  1655. Torso.C0 = Torso.C0:lerp(CFrame.Angles(math.rad(70), math.rad(180), 0), 0.35)
  1656. RightArm.C0 = RightArm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(90), 0), 0.35)
  1657. LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(-90), 0), 0.35)
  1658. RightLeg.C0 = RightLeg.C0:lerp(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-42), math.rad(90), 0), 0.35)
  1659. LeftLeg.C0 = LeftLeg.C0:lerp(CFrame.new(-1, -0.6, -0.5) * CFrame.Angles(math.rad(20), math.rad(-90), 0), 0.35)
  1660. end
  1661. attac = false
  1662. end
  1663. end)
  1664. game:service("UserInputService").InputBegan:connect(function(iO, proc)
  1665. if not proc then
  1666. if iO.KeyCode == Enum.KeyCode.Z then
  1667. MudaMuda(true, Enum.UserInputState.Begin, false)
  1668. end
  1669. if iO.KeyCode == Enum.KeyCode.C then
  1670. surroundTimeStop(true, Enum.UserInputState.Begin, false)
  1671. end
  1672. if iO.KeyCode == Enum.KeyCode.X then
  1673. TimeStop(true, Enum.UserInputState.Begin, false)
  1674. end
  1675. end
  1676. end)
  1677. game:service("UserInputService").InputEnded:connect(function(iO)
  1678. if iO.KeyCode == Enum.KeyCode.Z then
  1679. MudaMuda(true, Enum.UserInputState.End, false)
  1680. end
  1681. if iO.KeyCode == Enum.KeyCode.C then
  1682. surroundTimeStop(true, Enum.UserInputState.End, false)
  1683. end
  1684. if iO.KeyCode == Enum.KeyCode.X then
  1685. TimeStop(true, Enum.UserInputState.End, false)
  1686. end
  1687. end)
  1688. local Stable_Stand = Instance.new("BodyGyro")
  1689. Stable_Stand.Parent = RootPart
Advertisement
Add Comment
Please, Sign In to add comment