carlosname

Untitled

Apr 28th, 2020
169
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.  
  657. local voices = {
  658. 616576465,
  659. 877367823,
  660. 794070439,
  661. 877368036,
  662. 877370450
  663. }
  664. local hit_sfx = {553324113, 879339588}
  665. local AWeld = Instance.new("Motor")
  666. AWeld.Parent = Character
  667. AWeld.Part0 = Character["Left Arm"]
  668. AWeld.Part1 = part_2
  669. AWeld.C0 = CFrame.new(0, -1, 0.15) * CFrame.Angles(0, math.pi, 0)
  670. local KeyAnims = {
  671. UpKick = {
  672. H = Animation:init({
  673. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(75), math.rad(180), 0), 0.16, "inOutQuad"),
  674. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(55), math.rad(180), 0), 0.16, "inOutQuad")
  675. }, false),
  676. T = Animation:init({
  677. Keyframe:add(CFrame.Angles(math.rad(105), math.rad(180), 0), 0.16, "inOutQuad"),
  678. Keyframe:add(CFrame.Angles(math.rad(125), math.rad(180), 0), 0.14, "inOutQuad")
  679. }, false),
  680. RA = Animation:init({
  681. 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"),
  682. 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")
  683. }, false),
  684. LA = Animation:init({
  685. 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")
  686. }, false),
  687. RL = Animation:init({
  688. Keyframe:add(CFrame.new(1, -0.65, -0.85) * CFrame.Angles(math.rad(-36), math.rad(90), 0), 0.16, "inOutQuad"),
  689. Keyframe:add(CFrame.new(1, -0.5, -1.2) * CFrame.Angles(math.rad(-47), math.rad(90), 0), 0.14, "OutQuad")
  690. }, false),
  691. LL = Animation:init({
  692. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(-90), 0), 0.16, "inOutSine"),
  693. Keyframe:add(CFrame.new(-1, -1.1, 0) * CFrame.Angles(math.rad(-35), math.rad(-90), 0), 0.15, "OutExpo")
  694. }, false)
  695. },
  696. Punch = {
  697. H = Animation:init({
  698. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(200), math.rad(-69)), 0.2, "inOutQuad")
  699. }, false),
  700. T = Animation:init({
  701. Keyframe:add(CFrame.Angles(math.rad(70), math.rad(160), math.rad(69)), 0.18, "inOutQuad")
  702. }, false),
  703. RA = Animation:init({
  704. 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")
  705. }, false),
  706. LA = Animation:init({
  707. 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")
  708. }, false),
  709. RL = Animation:init({
  710. Keyframe:add(CFrame.new(1, -0.65, -0.5) * CFrame.Angles(math.rad(-50), math.rad(90), 0), 0.18, "OutQuad")
  711. }, false),
  712. LL = Animation:init({
  713. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.18, "OutExpo")
  714. }, false)
  715. },
  716. UpperCut = {
  717. H = Animation:init({
  718. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(200), math.rad(-58)), 0.13, "inOutQuad"),
  719. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(160), math.rad(60)), 0.285, "inQuint")
  720. }, false),
  721. T = Animation:init({
  722. Keyframe:add(CFrame.Angles(math.rad(70), math.rad(160), math.rad(58)), 0.13, "inOutQuad"),
  723. Keyframe:add(CFrame.Angles(math.rad(70), math.rad(200), math.rad(-60)), 0.285, "inQuint")
  724. }, false),
  725. RA = Animation:init({
  726. 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"),
  727. 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")
  728. }, false),
  729. LA = Animation:init({
  730. 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"),
  731. 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")
  732. }, false),
  733. RL = Animation:init({
  734. Keyframe:add(CFrame.new(1, -0.65, -0.5) * CFrame.Angles(math.rad(-50), math.rad(90), 0), 0.13, "inOutQuad"),
  735. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(90), 0), 0.285, "inQuint")
  736. }, false),
  737. LL = Animation:init({
  738. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(-90), 0), 0.13, "inOutQuad"),
  739. Keyframe:add(CFrame.new(-1, -0.65, -0.5) * CFrame.Angles(math.rad(-50), math.rad(-90), 0), 0.285, "inQuint")
  740. }, false)
  741. },
  742. Kick = {
  743. H = Animation:init({
  744. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(60), math.rad(180), math.rad(-52)), 0.32, "inOutSine"),
  745. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(60), math.rad(180), math.rad(-90)), 0.27, "outSine")
  746. }, false),
  747. T = Animation:init({
  748. Keyframe:add(CFrame.Angles(math.rad(120), math.rad(180), math.rad(52)), 0.32, "inOutSine"),
  749. Keyframe:add(CFrame.Angles(math.rad(120), math.rad(180), math.rad(90)), 0.32, "inOutSine")
  750. }, false),
  751. RA = Animation:init({
  752. 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")
  753. }, false),
  754. LA = Animation:init({
  755. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(-90), 0), 0.32, "inOutSine")
  756. }, false),
  757. RL = Animation:init({
  758. 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"),
  759. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-65), 0, 0), 0.23, "inBack")
  760. }, false),
  761. LL = Animation:init({
  762. Keyframe:add(CFrame.new(-1, -0.85, -0.5) * CFrame.Angles(math.rad(-50), math.rad(-90), 0), 0.32, "inOutSine"),
  763. 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")
  764. }, false)
  765. },
  766. Stomp = {
  767. H = Animation:init({
  768. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(102), math.rad(180), 0), 0.32, "outBack")
  769. }, false),
  770. T = Animation:init({
  771. Keyframe:add(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(52), math.rad(180), 0), 0.32, "outBack")
  772. }, false),
  773. RA = Animation:init({
  774. 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")
  775. }, false),
  776. LA = Animation:init({
  777. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-18), math.rad(-90), 0), 0.32, "outBack")
  778. }, false),
  779. RL = Animation:init({
  780. Keyframe:add(CFrame.new(1, -0.2, -0.5) * CFrame.Angles(math.rad(38), math.rad(90), 0), 0.32, "outBack")
  781. }, false),
  782. LL = Animation:init({
  783. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.32, "outBack")
  784. }, false)
  785. },
  786. TimeStop = {
  787. H = Animation:init({
  788. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(180), math.rad(80)), 0.28, "inOutCubic")
  789. }, false),
  790. T = Animation:init({
  791. Keyframe:add(CFrame.Angles(math.rad(90), math.rad(180), math.rad(-80)), 0.28, "inOutCubic")
  792. }, false),
  793. RA = Animation:init({
  794. 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")
  795. }, false),
  796. LA = Animation:init({
  797. 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")
  798. }, false),
  799. RL = Animation:init({
  800. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.28, "inOutCubic")
  801. }, false),
  802. LL = Animation:init({
  803. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.28, "inOutCubic")
  804. }, false),
  805. Kni = Animation:init({
  806. Keyframe:add(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-50), 0, 0), 0.28, "inOutCubic")
  807. }, false)
  808. },
  809. SurroundTimeStop = {
  810. H = Animation:init({
  811. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(180), 0), 0.21, "linear"),
  812. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(115), math.rad(180), 0), 0.25, "linear")
  813. }, false),
  814. T = Animation:init({
  815. Keyframe:add(CFrame.Angles(math.rad(90), math.rad(180), 0), 0.21, "linear"),
  816. Keyframe:add(CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(65), math.rad(180), 0), 0.25, "outQuad")
  817. }, false),
  818. RA = Animation:init({
  819. Keyframe:add(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(90), 0), 0.21, "linear"),
  820. 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")
  821. }, false),
  822. LA = Animation:init({
  823. Keyframe:add(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(105), math.rad(-90), 0), 0.21, "linear"),
  824. 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")
  825. }, false),
  826. RL = Animation:init({
  827. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.21, "linear"),
  828. Keyframe:add(CFrame.new(1, 0.55, -0.5) * CFrame.Angles(math.rad(25), math.rad(90), 0), 0.25, "outQuad")
  829. }, false),
  830. LL = Animation:init({
  831. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.21, "linear"),
  832. Keyframe:add(CFrame.new(-1, -0.2, -0.3) * CFrame.Angles(math.rad(-25), math.rad(-90), 0), 0.25, "outQuad")
  833. }, false)
  834. },
  835. Mooda = {
  836. H = Animation:init({
  837. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), math.rad(180), math.rad(-73)), 0.075, "inQuart"),
  838. Keyframe:add(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), math.rad(180), math.rad(71)), 0.075, "inQuart")
  839. }, true),
  840. T = Animation:init({
  841. Keyframe:add(CFrame.Angles(math.rad(80), math.rad(180), math.rad(75)), 0.075, "inQuart"),
  842. Keyframe:add(CFrame.Angles(math.rad(80), math.rad(180), math.rad(-75)), 0.075, "inQuart")
  843. }, true),
  844. RA = Animation:init({
  845. 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"),
  846. 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")
  847. }, true),
  848. LA = Animation:init({
  849. 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"),
  850. 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")
  851. }, true),
  852. RL = Animation:init({
  853. 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"),
  854. Keyframe:add(CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.075, "inQuart")
  855. }, true),
  856. LL = Animation:init({
  857. Keyframe:add(CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.075, "inQuart"),
  858. 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")
  859. }, true)
  860. }
  861. }
  862. local Hitbox = Instance.new("Part")
  863. Hitbox.Size = Vector3.new(4.2, 5, 3.5)
  864. Hitbox.CanCollide = false
  865. Hitbox.Transparency = 1
  866. local Hit_Sound = Instance.new("Sound")
  867. Hit_Sound.Parent = Hitbox
  868. Hit_Sound.SoundId = "rbxassetid://" .. hit_sfx[math.random(1, #hit_sfx)]
  869. Hit_Sound.Pitch = math.random(0.9, 1.4)
  870. Hit_Sound.Volume = 3.5
  871. function attackseq()
  872. if not Attacking and PlayMainAnims and AttackSeq == 0 and 0 < Character.Humanoid.Health and not isKneeing then
  873. Attacking = true
  874. attac = true
  875. isKneeing = true
  876. PlayMainAnims = false
  877. do
  878. local HitCopy = Hitbox:Clone()
  879. HitCopy.Parent = Character
  880. local HitWeld = Instance.new("Motor")
  881. HitWeld.Parent = Character
  882. HitWeld.Part0 = RootPart
  883. HitWeld.Part1 = HitCopy
  884. local dmgdb = false
  885. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  886. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  887. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  888. dmgdb = true
  889. HitCopy:WaitForChild("Sound"):Resume()
  890. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  891. local Push = Instance.new("BodyVelocity")
  892. Push.Parent = Hit.Parent:WaitForChild("Head")
  893. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  894. Push.Velocity = (RootPart.CFrame.upVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 4.3
  895. wait(0.45)
  896. Push:Remove()
  897. wait(1)
  898. dmgdb = false
  899. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  900. dmgdb = true
  901. HitCopy:WaitForChild("Sound"):Resume()
  902. timeDamage = timeDamage + 8
  903. spawn(function()
  904. while wait() do
  905. if not HumanTimeStop then
  906. TakeDamage(Hum, timeDamage)
  907. timeDamage = 0
  908. end
  909. end
  910. end)
  911. wait(1.45)
  912. dmgdb = false
  913. end
  914. end)
  915. local voice = Instance.new("Sound")
  916. voice.Parent = Character.Head
  917. voice.SoundId = "rbxassetid://" .. voices[math.random(1, #voices)]
  918. voice.PlayOnRemove = false
  919. voice:Play()
  920. spawn(function()
  921. local H = KeyAnims.UpKick.H:play(Head)
  922. H()
  923. end)
  924. spawn(function()
  925. local T = KeyAnims.UpKick.T:play(Torso)
  926. T()
  927. end)
  928. spawn(function()
  929. local RA = KeyAnims.UpKick.RA:play(RightArm)
  930. RA()
  931. end)
  932. spawn(function()
  933. local LA = KeyAnims.UpKick.LA:play(LeftArm)
  934. LA()
  935. end)
  936. spawn(function()
  937. local RL = KeyAnims.UpKick.RL:play(RightLeg)
  938. RL()
  939. end)
  940. spawn(function()
  941. local LL = KeyAnims.UpKick.LL:play(LeftLeg)
  942. LL()
  943. end)
  944. local Vel = Instance.new("BodyVelocity")
  945. Vel.Parent = Character.Torso
  946. Vel.MaxForce = Vector3.new(9000000000, 9900000000, 18000000000)
  947. Vel.Velocity = (RootPart.CFrame.upVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 4.2
  948. wait(0.315)
  949. HitCopy:Remove()
  950. Vel:Remove()
  951. Attacking = false
  952. PlayMainAnims = true
  953. AttackSeq = 1
  954. wait(1)
  955. isKneeing = false
  956. end
  957. elseif not Attacking and PlayMainAnims and AttackSeq == 1 and 0 < Character.Humanoid.Health then
  958. Attacking = true
  959. PlayMainAnims = false
  960. do
  961. local HitCopy = Hitbox:Clone()
  962. HitCopy.Parent = Character
  963. local HitWeld = Instance.new("Motor")
  964. HitWeld.Parent = Character
  965. HitWeld.Part0 = RootPart
  966. HitWeld.Part1 = HitCopy
  967. local dmgdb = false
  968. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  969. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  970. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  971. dmgdb = true
  972. HitCopy:WaitForChild("Sound"):Resume()
  973. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  974. local Push = Instance.new("BodyVelocity")
  975. Push.Parent = Hit.Parent:WaitForChild("Head")
  976. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  977. Push.Velocity = (RootPart.CFrame.lookVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 2.4
  978. wait(0.45)
  979. Push:Remove()
  980. wait(1)
  981. dmgdb = false
  982. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  983. dmgdb = true
  984. HitCopy:WaitForChild("Sound"):Resume()
  985. timeDamage = timeDamage + 7
  986. spawn(function()
  987. while wait() do
  988. if not HumanTimeStop then
  989. TakeDamage(Hum, timeDamage)
  990. timeDamage = 0
  991. end
  992. end
  993. end)
  994. wait(1.45)
  995. dmgdb = false
  996. end
  997. end)
  998. spawn(function()
  999. local H = KeyAnims.Punch.H:play(Head)
  1000. H()
  1001. end)
  1002. spawn(function()
  1003. local T = KeyAnims.Punch.T:play(Torso)
  1004. T()
  1005. end)
  1006. spawn(function()
  1007. local RA = KeyAnims.Punch.RA:play(RightArm)
  1008. RA()
  1009. end)
  1010. spawn(function()
  1011. local LA = KeyAnims.Punch.LA:play(LeftArm)
  1012. LA()
  1013. end)
  1014. spawn(function()
  1015. local RL = KeyAnims.Punch.RL:play(RightLeg)
  1016. RL()
  1017. end)
  1018. spawn(function()
  1019. local LL = KeyAnims.Punch.LL:play(LeftLeg)
  1020. LL()
  1021. end)
  1022. local Vel = Instance.new("BodyVelocity")
  1023. Vel.Parent = Character.Torso
  1024. Vel.MaxForce = Vector3.new(9000000000, 9900000000, 11700000000)
  1025. Vel.Velocity = (RootPart.CFrame.lookVector * 1.4 * (450 / (Character.Torso:GetMass() * 1.1)) / 5 + Vector3.new(0, 0.375, 5)) / 2.45
  1026. wait(0.35)
  1027. HitCopy:Remove()
  1028. Vel:Remove()
  1029. Attacking = false
  1030. PlayMainAnims = true
  1031. AttackSeq = 2
  1032. end
  1033. elseif not Attacking and PlayMainAnims and AttackSeq == 2 and 0 < Character.Humanoid.Health then
  1034. PlayMainAnims = false
  1035. Attacking = true
  1036. do
  1037. local HitCopy = Hitbox:Clone()
  1038. HitCopy.Parent = Character
  1039. local HitWeld = Instance.new("Motor")
  1040. HitWeld.Parent = Character
  1041. HitWeld.Part0 = RootPart
  1042. HitWeld.Part1 = HitCopy
  1043. local dmgdb = false
  1044. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  1045. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  1046. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  1047. dmgdb = true
  1048. HitCopy:WaitForChild("Sound").SoundId = "rbxassetid://730099250"
  1049. HitCopy:WaitForChild("Sound"):Resume()
  1050. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  1051. local Push = Instance.new("BodyVelocity")
  1052. Push.Parent = Hit.Parent:WaitForChild("Head")
  1053. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  1054. Push.Velocity = (RootPart.CFrame.lookVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 2.45
  1055. wait(0.45)
  1056. Push:Remove()
  1057. wait(1)
  1058. dmgdb = false
  1059. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  1060. dmgdb = true
  1061. HitCopy:WaitForChild("Sound"):Resume()
  1062. timeDamage = timeDamage + 12
  1063. spawn(function()
  1064. while wait() do
  1065. if not HumanTimeStop then
  1066. TakeDamage(Hum, timeDamage)
  1067. timeDamage = 0
  1068. end
  1069. end
  1070. end)
  1071. wait(1.45)
  1072. dmgdb = false
  1073. end
  1074. end)
  1075. local slash = Instance.new("Sound")
  1076. slash.Parent = Character["Left Arm"]
  1077. slash.SoundId = "rbxassetid://200633029"
  1078. slash.Pitch = math.random(1, 2)
  1079. slash.Volume = 1.2
  1080. slash:Play()
  1081. spawn(function()
  1082. local H = KeyAnims.UpperCut.H:play(Head)
  1083. H()
  1084. end)
  1085. spawn(function()
  1086. local T = KeyAnims.UpperCut.T:play(Torso)
  1087. T()
  1088. end)
  1089. spawn(function()
  1090. local RA = KeyAnims.UpperCut.RA:play(RightArm)
  1091. RA()
  1092. end)
  1093. spawn(function()
  1094. local LA = KeyAnims.UpperCut.LA:play(LeftArm)
  1095. LA()
  1096. end)
  1097. spawn(function()
  1098. local RL = KeyAnims.UpperCut.RL:play(RightLeg)
  1099. RL()
  1100. end)
  1101. spawn(function()
  1102. local LL = KeyAnims.UpperCut.LL:play(LeftLeg)
  1103. LL()
  1104. end)
  1105. local Vel = Instance.new("BodyVelocity")
  1106. Vel.Parent = Character.Torso
  1107. Vel.MaxForce = Vector3.new(9000000000, 9900000000, 11700000000)
  1108. Vel.Velocity = (RootPart.CFrame.lookVector * 1.4 * (450 / (Character.Torso:GetMass() * 1.1)) / 5.5 + Vector3.new(0, -0.375, 5)) / 2.5
  1109. wait(0.55)
  1110. HitCopy:Remove()
  1111. Vel:Remove()
  1112. PlayMainAnims = true
  1113. Attacking = false
  1114. AttackSeq = 3
  1115. end
  1116. elseif not Attacking and PlayMainAnims and AttackSeq == 3 and 0 < Character.Humanoid.Health then
  1117. PlayMainAnims = false
  1118. Attacking = true
  1119. do
  1120. local HitCopy = Hitbox:Clone()
  1121. HitCopy.Parent = Character
  1122. local HitWeld = Instance.new("Motor")
  1123. HitWeld.Parent = Character
  1124. HitWeld.Part0 = RootPart
  1125. HitWeld.Part1 = HitCopy
  1126. local dmgdb = false
  1127. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  1128. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  1129. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  1130. dmgdb = true
  1131. HitCopy:WaitForChild("Sound"):Resume()
  1132. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  1133. local Push = Instance.new("BodyVelocity")
  1134. Push.Parent = Hit.Parent:WaitForChild("Head")
  1135. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  1136. Push.Velocity = (RootPart.CFrame.lookVector / 3 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 2
  1137. wait(0.45)
  1138. Push:Remove()
  1139. wait(1)
  1140. dmgdb = false
  1141. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  1142. dmgdb = true
  1143. HitCopy:WaitForChild("Sound"):Resume()
  1144. timeDamage = timeDamage + 9
  1145. spawn(function()
  1146. while wait() do
  1147. if not HumanTimeStop then
  1148. TakeDamage(Hum, timeDamage)
  1149. timeDamage = 0
  1150. end
  1151. end
  1152. end)
  1153. wait(1.45)
  1154. dmgdb = false
  1155. end
  1156. end)
  1157. local voice = Instance.new("Sound")
  1158. voice.Parent = Character.Head
  1159. voice.SoundId = "rbxassetid://" .. voices[math.random(1, #voices)]
  1160. voice.PlayOnRemove = false
  1161. voice:Play()
  1162. spawn(function()
  1163. local H = KeyAnims.Kick.H:play(Head)
  1164. H()
  1165. end)
  1166. spawn(function()
  1167. local T = KeyAnims.Kick.T:play(Torso)
  1168. T()
  1169. end)
  1170. spawn(function()
  1171. local RA = KeyAnims.Kick.RA:play(RightArm)
  1172. RA()
  1173. end)
  1174. spawn(function()
  1175. local LA = KeyAnims.Kick.LA:play(LeftArm)
  1176. LA()
  1177. end)
  1178. spawn(function()
  1179. local RL = KeyAnims.Kick.RL:play(RightLeg)
  1180. RL()
  1181. end)
  1182. spawn(function()
  1183. local LL = KeyAnims.Kick.LL:play(LeftLeg)
  1184. LL()
  1185. end)
  1186. local Vel = Instance.new("BodyVelocity")
  1187. Vel.Parent = Character.Torso
  1188. Vel.MaxForce = Vector3.new(9000000000, 9900000000, 11700000000)
  1189. Vel.Velocity = (RootPart.CFrame.lookVector * 1.4 * (450 / (Character.Torso:GetMass() * 1.1)) / 5.5 + Vector3.new(0, -0.375, 5)) / 1.9
  1190. wait(0.715)
  1191. HitCopy:Remove()
  1192. Vel:Remove()
  1193. PlayMainAnims = true
  1194. Attacking = false
  1195. AttackSeq = 4
  1196. end
  1197. elseif not Attacking and PlayMainAnims and AttackSeq == 4 and 0 < Character.Humanoid.Health then
  1198. PlayMainAnims = false
  1199. Attacking = true
  1200. do
  1201. local HitCopy = Hitbox:Clone()
  1202. HitCopy.Size = Vector3.new(4.2, 2.5, 3.5)
  1203. HitCopy.Parent = Character
  1204. local HitWeld = Instance.new("Motor")
  1205. HitWeld.Parent = Character
  1206. HitWeld.Part0 = RootPart
  1207. HitWeld.Part1 = HitCopy
  1208. HitWeld.C0 = CFrame.new(0, -3, 0)
  1209. local dmgdb = false
  1210. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  1211. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  1212. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  1213. dmgdb = true
  1214. HitCopy:WaitForChild("Sound"):Resume()
  1215. Hum:TakeDamage(Hum.MaxHealth/2/2/2)
  1216. local Push = Instance.new("BodyVelocity")
  1217. Push.Parent = Hit.Parent:WaitForChild("HumanoidRootPart")
  1218. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  1219. Push.Velocity = (RootPart.CFrame.upVector / -6 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 4
  1220. wait(0.45)
  1221. Push:Remove()
  1222. wait(1)
  1223. dmgdb = false
  1224. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  1225. dmgdb = true
  1226. HitCopy:WaitForChild("Sound"):Resume()
  1227. timeDamage = timeDamage + 7
  1228. spawn(function()
  1229. while wait() do
  1230. if not HumanTimeStop then
  1231. TakeDamage(Hum, timeDamage)
  1232. timeDamage = 0
  1233. end
  1234. end
  1235. end)
  1236. wait(1.45)
  1237. dmgdb = false
  1238. end
  1239. end)
  1240. local voice = Instance.new("Sound")
  1241. voice.Parent = Character.Head
  1242. voice.SoundId = "rbxassetid://" .. voices[math.random(1, #voices)]
  1243. voice.PlayOnRemove = false
  1244. voice:Play()
  1245. spawn(function()
  1246. local H = KeyAnims.Stomp.H:play(Head)
  1247. H()
  1248. end)
  1249. spawn(function()
  1250. local T = KeyAnims.Stomp.T:play(Torso)
  1251. T()
  1252. end)
  1253. spawn(function()
  1254. local RA = KeyAnims.Stomp.RA:play(RightArm)
  1255. RA()
  1256. end)
  1257. spawn(function()
  1258. local LA = KeyAnims.Stomp.LA:play(LeftArm)
  1259. LA()
  1260. end)
  1261. spawn(function()
  1262. local RL = KeyAnims.Stomp.RL:play(RightLeg)
  1263. RL()
  1264. end)
  1265. spawn(function()
  1266. local LL = KeyAnims.Stomp.LL:play(LeftLeg)
  1267. LL()
  1268. end)
  1269. wait(0.65)
  1270. HitCopy:Remove()
  1271. AttackSeq = 0
  1272. Attacking = false
  1273. PlayMainAnims = true
  1274. attac = false
  1275. end
  1276. end
  1277. end
  1278. local Cola = BrickColor.new("New Yeller")
  1279. local rCola = Cola.Color
  1280. local Attach0 = Instance.new("Attachment")
  1281. Attach0.Parent = Character:WaitForChild("Head")
  1282. local Attach1 = Instance.new("Attachment")
  1283. Attach1.Parent = RealTorso
  1284. local Trail = Instance.new("Trail")
  1285. Trail.Color = ColorSequence.new(rCola)
  1286. Trail.Enabled = false
  1287. Trail.Transparency = NumberSequence.new({
  1288. NumberSequenceKeypoint.new(0, 0.25, 0),
  1289. NumberSequenceKeypoint.new(1, 1, 0)
  1290. })
  1291. Trail.Parent = Character
  1292. Trail.Attachment0 = Attach0
  1293. Trail.Attachment1 = Attach1
  1294. local AnchoredTable = {}
  1295. function anchorparts(parent)
  1296. spawn(function()
  1297. for i, x in pairs(r6) do
  1298. 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
  1299. parent[x].Anchored = true
  1300. table.insert(AnchoredTable, x)
  1301. else
  1302. return nil
  1303. end
  1304. end
  1305. end)
  1306. for i, x in pairs(r15) do
  1307. 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
  1308. parent[x].Anchored = true
  1309. table.insert(AnchoredTable, x)
  1310. else
  1311. return nil
  1312. end
  1313. end
  1314. end
  1315. function unanchorparts(parent)
  1316. for _, v in pairs(parent:GetChildren()) do
  1317. if v:IsA("BasePart") and v.Anchored == true then
  1318. for i = 1, #AnchoredTable do
  1319. if AnchoredTable[i] == v.Name then
  1320. v.Anchored = false
  1321. HumanTimeStop = false
  1322. end
  1323. end
  1324. end
  1325. end
  1326. end
  1327. local canTimeStop = false
  1328. local DIIIOO = Instance.new("Sound")
  1329. DIIIOO.Parent = Character.Head
  1330. DIIIOO.SoundId = "rbxassetid://616576400"
  1331. function TimeStop(a, State, b)
  1332. if State == Enum.UserInputState.Begin and not Attacking and PlayMainAnims and not canTimeStop and CharHum.Health > 30 then
  1333. canTimeStop = true
  1334. Attacking = true
  1335. PlayMainAnims = false
  1336. DIIIOO:Resume()
  1337. Trail.Enabled = true
  1338. spawn(function()
  1339. local H = KeyAnims.TimeStop.H:play(Head)
  1340. H()
  1341. end)
  1342. spawn(function()
  1343. local T = KeyAnims.TimeStop.T:play(Torso)
  1344. T()
  1345. end)
  1346. spawn(function()
  1347. local RA = KeyAnims.TimeStop.RA:play(RightArm)
  1348. RA()
  1349. end)
  1350. spawn(function()
  1351. local LA = KeyAnims.TimeStop.LA:play(LeftArm)
  1352. LA()
  1353. end)
  1354. spawn(function()
  1355. local RL = KeyAnims.TimeStop.RL:play(RightLeg)
  1356. RL()
  1357. end)
  1358. spawn(function()
  1359. local LL = KeyAnims.TimeStop.LL:play(LeftLeg)
  1360. LL()
  1361. end)
  1362. spawn(function()
  1363. local Kn = KeyAnims.TimeStop.Kni:play(AWeld)
  1364. Kn()
  1365. end)
  1366. do
  1367. local dmgdb = false
  1368. local HitDetect = RealTorso.Touched:Connect(function(Hit)
  1369. local Human = Hit.Parent:FindFirstChild("Humanoid")
  1370. if Human and Human.Parent.Name ~= Player.Name and Human.Health > 0 and not dmgdb then
  1371. dmgdb = true
  1372. HumanTimeStop = true
  1373. TakeDamage(Human, 16)
  1374. anchorparts(Human.Parent)
  1375. wait(3.2)
  1376. HumanTimeStop = false
  1377. unanchorparts(Human.Parent)
  1378. dmgdb = false
  1379. end
  1380. end)
  1381. wait(0.2)
  1382. local passRayCast = Ray.new(RootPart.CFrame.p, RootPart.CFrame.lookVector.unit * 30)
  1383. local Hit, Pos, Surface = workspace:FindPartOnRay(passRayCast, Character)
  1384. local TpPart = Instance.new("Part")
  1385. TpPart.Parent = Character
  1386. TpPart.Size = Vector3.new(1, 1, 1)
  1387. TpPart.CanCollide = false
  1388. TpPart.Anchored = true
  1389. TpPart.Transparency = 1
  1390. TpPart.CFrame = CFrame.new(Pos) * CFrame.Angles(0, math.rad(RootPart.Rotation.Y), 0)
  1391. RealTorso.CFrame = TpPart.CFrame
  1392. wait(0.7)
  1393. HitDetect:disconnect()
  1394. Trail.Enabled = false
  1395. TpPart:Remove()
  1396. Attacking = false
  1397. PlayMainAnims = true
  1398. wait(15)
  1399. canTimeStop = false
  1400. end
  1401. end
  1402. end
  1403. function surroundTimeStop(a, State, b)
  1404. if State == Enum.UserInputState.Begin and not Attacking and PlayMainAnims and not canTimeStop and CharHum.Health > 30 then
  1405. Attacking = true
  1406. canTimeStop = true
  1407. CharHum.WalkSpeed = 0
  1408. PlayMainAnims = false
  1409. local Wry = Instance.new("Sound")
  1410. Wry.Parent = Character
  1411. Wry.SoundId = "rbxassetid://955633944"
  1412. Wry:Play()
  1413. spawn(function()
  1414. local H = KeyAnims.SurroundTimeStop.H:play(Head)
  1415. H()
  1416. end)
  1417. spawn(function()
  1418. local T = KeyAnims.SurroundTimeStop.T:play(Torso)
  1419. T()
  1420. end)
  1421. spawn(function()
  1422. local RA = KeyAnims.SurroundTimeStop.RA:play(RightArm)
  1423. RA()
  1424. end)
  1425. spawn(function()
  1426. local LA = KeyAnims.SurroundTimeStop.LA:play(LeftArm)
  1427. LA()
  1428. end)
  1429. spawn(function()
  1430. local RL = KeyAnims.SurroundTimeStop.RL:play(RightLeg)
  1431. RL()
  1432. end)
  1433. spawn(function()
  1434. local LL = KeyAnims.SurroundTimeStop.LL:play(LeftLeg)
  1435. LL()
  1436. end)
  1437. local HitPart = Instance.new("Part")
  1438. HitPart.Parent = Character.Torso
  1439. HitPart.CanCollide = false
  1440. HitPart.Anchored = true
  1441. HitPart.CFrame = HitPart.Parent.CFrame
  1442. HitPart.Transparency = 0.8
  1443. HitPart.Size = Vector3.new(30, 20, 30)
  1444. local function HitDetect(hit)
  1445. local Hum = hit.Parent:FindFirstChild("Humanoid")
  1446. if Hum and Hum.Parent.Name ~= Player.Name and not HumanTimeStop then
  1447. anchorparts(Hum.Parent)
  1448. wait(5)
  1449. unanchorparts(Hum.Parent)
  1450. end
  1451. end
  1452. HitPart.Touched:Connect(HitDetect)
  1453. wait(1.8)
  1454. CharHum.WalkSpeed = 16
  1455. Attacking = false
  1456. PlayMainAnims = true
  1457. for i = 1,15 do
  1458. HitPart.Transparency = HitPart.Transparency + 0.1
  1459. end
  1460. HitPart:Destroy()
  1461. wait(20)
  1462. Wry:Remove()
  1463. canTimeStop = false
  1464. end
  1465. end
  1466. local Muda = false
  1467. local MudaSound = Instance.new("Sound")
  1468. MudaSound.Parent = RealTorso
  1469. MudaSound.SoundId = "rbxassetid://601465752"
  1470. MudaSound.Looped = true
  1471. MudaSound.Volume = 3
  1472. function MudaMuda(a, State, b)
  1473. if State == Enum.UserInputState.Begin and not Attacking and PlayMainAnims and not Muda then
  1474. mud = true
  1475. PlayMainAnims = false
  1476. Attacking = true
  1477. Muda = true
  1478. CharHum.WalkSpeed = 6.5
  1479. spawn(function()
  1480. local H = KeyAnims.Mooda.H:play(Head)
  1481. H()
  1482. end)
  1483. spawn(function()
  1484. local T = KeyAnims.Mooda.T:play(Torso)
  1485. T()
  1486. end)
  1487. spawn(function()
  1488. local RA = KeyAnims.Mooda.RA:play(RightArm)
  1489. RA()
  1490. end)
  1491. spawn(function()
  1492. local LA = KeyAnims.Mooda.LA:play(LeftArm)
  1493. LA()
  1494. end)
  1495. spawn(function()
  1496. local RL = KeyAnims.Mooda.RL:play(RightLeg)
  1497. RL()
  1498. end)
  1499. spawn(function()
  1500. local LL = KeyAnims.Mooda.LL:play(LeftLeg)
  1501. LL()
  1502. end)
  1503. spawn(function()
  1504. while Muda do
  1505. do
  1506. local HitCopy = Hitbox:Clone()
  1507. HitCopy.Parent = Character
  1508. local HitWeld = Instance.new("Motor")
  1509. HitWeld.Parent = Character
  1510. HitWeld.Part0 = RootPart
  1511. HitWeld.Part1 = HitCopy
  1512. HitCopy:WaitForChild("Sound").Parent = RootPart
  1513. local dmgdb = false
  1514. local HitDetect = HitCopy.Touched:Connect(function(Hit)
  1515. local Hum = Hit.Parent:FindFirstChild("Humanoid")
  1516. if Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and not HumanTimeStop then
  1517. RootPart:WaitForChild("Sound"):Play()
  1518. dmgdb = true
  1519. TakeDamage(Hum, 2)
  1520. local Push = Instance.new("BodyVelocity")
  1521. Push.Parent = Hit.Parent:WaitForChild("HumanoidRootPart")
  1522. Push.MaxForce = Vector3.new(9000000000, 13500000000, 9000000000)
  1523. Push.Velocity = (RootPart.CFrame.lookVector / 4 * (450 / (Character.Torso:GetMass() * 1.1)) + Vector3.new(0, 0.375, 4)) / 4
  1524. wait(0.45)
  1525. Push:Remove()
  1526. wait(0.08)
  1527. dmgdb = false
  1528. elseif Hum and Hum.Parent.Name ~= Character.Name and Hum.Health > 0 and not dmgdb and HumanTimeStop then
  1529. dmgdb = true
  1530. timeDamage = timeDamage + 2
  1531. RootPart:WaitForChild("Sound"):Play()
  1532. spawn(function()
  1533. while wait() do
  1534. if not HumanTimeStop then
  1535. TakeDamage(Hum, timeDamage)
  1536. timeDamage = 0
  1537. end
  1538. end
  1539. end)
  1540. wait(0.08)
  1541. dmgdb = false
  1542. end
  1543. end)
  1544. wait(0.05)
  1545. HitCopy:Remove()
  1546. if Muda == false then
  1547. else
  1548. wait()
  1549. end
  1550. end
  1551. end
  1552. end)
  1553. ArmSpreadL = math.random(-30, 30)
  1554. ArmSpreadR = math.random(-30, 30)
  1555. MudaSound:Resume()
  1556. elseif State == Enum.UserInputState.End and Attacking and not PlayMainAnims and Muda then
  1557. PlayMainAnims = true
  1558. mud = false
  1559. Attacking = false
  1560. Muda = false
  1561. spawn(function()
  1562. KeyAnims.Mooda.H:stop()
  1563. end)
  1564. spawn(function()
  1565. KeyAnims.Mooda.T:stop()
  1566. end)
  1567. spawn(function()
  1568. KeyAnims.Mooda.RA:stop()
  1569. end)
  1570. spawn(function()
  1571. KeyAnims.Mooda.LA:stop()
  1572. end)
  1573. spawn(function()
  1574. KeyAnims.Mooda.RL:stop()
  1575. end)
  1576. spawn(function()
  1577. KeyAnims.Mooda.LL:stop()
  1578. end)
  1579. MudaSound:Stop()
  1580. CharHum.WalkSpeed = 16
  1581. end
  1582. end
  1583.  
  1584. char["Left Arm"].Touched:connect(function(hit)
  1585. if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and mud then
  1586. local targ = hit.Parent
  1587. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1588. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2/2/2)
  1589. elseif hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and attac then
  1590. local targ = hit.Parent
  1591. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1592. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2/2)
  1593. end
  1594. end)
  1595.  
  1596. char["Right Arm"].Touched:connect(function(hit)
  1597. if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and mud then
  1598. local targ = hit.Parent
  1599. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1600. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2/2/2)
  1601. elseif hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and attac then
  1602. local targ = hit.Parent
  1603. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1604. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2/2)
  1605. end
  1606. end)
  1607.  
  1608. Mouse.Button1Down:Connect(attackseq)
  1609. attac = true
  1610. local FreeFalling = false
  1611. local Jumping = false
  1612. Run.RenderStepped:Connect(function()
  1613. local JumpRay = Ray.new(RootPart.CFrame.p, RootPart.CFrame.upVector.unit * -99999999999999)
  1614. local hit, pos, surf = workspace:FindPartOnRay(JumpRay, Character)
  1615. if PlayMainAnims then
  1616. AWeld.C0 = CFrame.new(0, -1, 0.15) * CFrame.Angles(0, math.pi, 0)
  1617. local CurrentAnimation = "Idle"
  1618. local JumpDist = (pos - RootPart.CFrame.p).magnitude
  1619. if Character.Humanoid.Jump then
  1620. Jumping = true
  1621. else
  1622. Jumping = false
  1623. end
  1624. if (RealTorso.Velocity - Vector3.new(1, 0, 1)).magnitude < 2 and JumpDist < 3 then
  1625. CurrentAnimation = "Idle"
  1626. elseif (RealTorso.Velocity - Vector3.new(1, 0, 1)).magnitude > 2 and JumpDist < 3 then
  1627. CurrentAnimation = "Walking"
  1628. elseif JumpDist > 3 and 3 < RootPart.Velocity.Y and not Attacking and not isKneeing then
  1629. CurrentAnimation = "Jumping"
  1630. elseif JumpDist > 3 and RootPart.Velocity.Y < -3 and not Attacking and not isKneeing then
  1631. CurrentAnimation = "Falling"
  1632. end
  1633. if CurrentAnimation == "Idle" then
  1634. 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)
  1635. Torso.C0 = Torso.C0:lerp(CFrame.Angles(math.rad(80 + 6 * math.sin(tick() * 2.4)), math.rad(180), math.rad(38)), 0.16)
  1636. 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)
  1637. 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)
  1638. 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)
  1639. 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)
  1640. elseif CurrentAnimation == "Walking" then
  1641. 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)
  1642. 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)
  1643. 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)
  1644. 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)
  1645. 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)
  1646. 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)
  1647. elseif CurrentAnimation == "Jumping" then
  1648. Head.C0 = Head.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(70), math.rad(180), 0), 0.35)
  1649. Torso.C0 = Torso.C0:lerp(CFrame.Angles(math.rad(110), math.rad(180), 0), 0.35)
  1650. RightArm.C0 = RightArm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(90), 0), 0.35)
  1651. LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(-90), 0), 0.35)
  1652. RightLeg.C0 = RightLeg.C0:lerp(CFrame.new(1, -0.6, -0.5) * CFrame.Angles(math.rad(-20), math.rad(90), 0), 0.35)
  1653. LeftLeg.C0 = LeftLeg.C0:lerp(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-42), math.rad(-90), 0), 0.35)
  1654. elseif CurrentAnimation == "Falling" then
  1655. Head.C0 = Head.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(110), math.rad(180), 0), 0.35)
  1656. Torso.C0 = Torso.C0:lerp(CFrame.Angles(math.rad(70), math.rad(180), 0), 0.35)
  1657. RightArm.C0 = RightArm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(90), 0), 0.35)
  1658. LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(-90), 0), 0.35)
  1659. RightLeg.C0 = RightLeg.C0:lerp(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-42), math.rad(90), 0), 0.35)
  1660. LeftLeg.C0 = LeftLeg.C0:lerp(CFrame.new(-1, -0.6, -0.5) * CFrame.Angles(math.rad(20), math.rad(-90), 0), 0.35)
  1661. end
  1662. attac = false
  1663. end
  1664. end)
  1665. game:service("UserInputService").InputBegan:connect(function(iO, proc)
  1666. if not proc then
  1667. if iO.KeyCode == Enum.KeyCode.Z then
  1668. MudaMuda(true, Enum.UserInputState.Begin, false)
  1669. end
  1670. if iO.KeyCode == Enum.KeyCode.C then
  1671. surroundTimeStop(true, Enum.UserInputState.Begin, false)
  1672. end
  1673. if iO.KeyCode == Enum.KeyCode.X then
  1674. TimeStop(true, Enum.UserInputState.Begin, false)
  1675. end
  1676. end
  1677. end)
  1678. game:service("UserInputService").InputEnded:connect(function(iO)
  1679. if iO.KeyCode == Enum.KeyCode.Z then
  1680. MudaMuda(true, Enum.UserInputState.End, false)
  1681. end
  1682. if iO.KeyCode == Enum.KeyCode.C then
  1683. surroundTimeStop(true, Enum.UserInputState.End, false)
  1684. end
  1685. if iO.KeyCode == Enum.KeyCode.X then
  1686. TimeStop(true, Enum.UserInputState.End, false)
  1687. end
  1688. end)
  1689. local Stable_Stand = Instance.new("BodyGyro")
  1690. Stable_Stand.Parent = RootPart
Advertisement
Add Comment
Please, Sign In to add comment