Advertisement
ihateff2bcuzitsux

my own moveset gojo like or idk nor do i care

Oct 29th, 2024
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.05 KB | None | 0 0
  1. -- saitama
  2.  
  3. local player = game.Players.LocalPlayer
  4.  
  5. local playerGui = player.PlayerGui
  6.  
  7. local hotbar = playerGui:FindFirstChild("Hotbar")
  8.  
  9. local backpack = hotbar:FindFirstChild("Backpack")
  10.  
  11. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  12.  
  13. local baseButton = hotbarFrame:FindFirstChild("1").Base
  14.  
  15. local ToolName = baseButton.ToolName
  16.  
  17.  
  18. ToolName.Text = "Reversal Red" -- put the name of the base move 1
  19.  
  20.  
  21. local player = game.Players.LocalPlayer
  22.  
  23. local playerGui = player.PlayerGui
  24.  
  25. local hotbar = playerGui:FindFirstChild("Hotbar")
  26.  
  27. local backpack = hotbar:FindFirstChild("Backpack")
  28.  
  29. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  30.  
  31. local baseButton = hotbarFrame:FindFirstChild("2").Base
  32.  
  33. local ToolName = baseButton.ToolName
  34.  
  35.  
  36. ToolName.Text = "Limitless Punches" -- put the name of the base move 2
  37.  
  38.  
  39. local player = game.Players.LocalPlayer
  40.  
  41. local playerGui = player.PlayerGui
  42.  
  43. local hotbar = playerGui:FindFirstChild("Hotbar")
  44.  
  45. local backpack = hotbar:FindFirstChild("Backpack")
  46.  
  47. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  48.  
  49. local baseButton = hotbarFrame:FindFirstChild("3").Base
  50.  
  51. local ToolName = baseButton.ToolName
  52.  
  53.  
  54. ToolName.Text = "Knockback" -- put the name of the base move 3
  55.  
  56.  
  57. local player = game.Players.LocalPlayer
  58.  
  59. local playerGui = player.PlayerGui
  60.  
  61. local hotbar = playerGui:FindFirstChild("Hotbar")
  62.  
  63. local backpack = hotbar:FindFirstChild("Backpack")
  64.  
  65. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  66.  
  67. local baseButton = hotbarFrame:FindFirstChild("4").Base
  68.  
  69. local ToolName = baseButton.ToolName
  70.  
  71.  
  72. ToolName.Text = "Aerial Lapse Blue" -- put the name of the base move 4
  73.  
  74.  
  75. local Players = game:GetService("Players")
  76.  
  77. local player = Players.LocalPlayer
  78.  
  79. local playerGui = player:WaitForChild("PlayerGui")
  80.  
  81.  
  82. local function findGuiAndSetText()
  83.  
  84. local screenGui = playerGui:FindFirstChild("ScreenGui")
  85.  
  86. if screenGui then
  87.  
  88. local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
  89.  
  90. if magicHealthFrame then
  91.  
  92. local textLabel = magicHealthFrame:FindFirstChild("TextLabel")
  93.  
  94. if textLabel then
  95.  
  96. textLabel.Text = "throughout Heaven And Earth, The Honored One." -- put the name of the ult name ultimate text
  97.  
  98. end
  99.  
  100. end
  101.  
  102. end
  103.  
  104. end
  105.  
  106. -- move 1
  107.  
  108. playerGui.DescendantAdded:Connect(findGuiAndSetText)
  109.  
  110. findGuiAndSetText()
  111.  
  112.  
  113. local animationId = 13073745835 -- the anim that will get track
  114.  
  115.  
  116. local player = game.Players.LocalPlayer
  117.  
  118. local character = player.Character or player.CharacterAdded:Wait()
  119.  
  120. local humanoid = character:WaitForChild("Humanoid")
  121.  
  122.  
  123. local function onAnimationPlayed(animationTrack)
  124.  
  125. if animationTrack.Animation.AnimationId == "rbxassetid://13073745835" .. animationId then
  126.  
  127.  
  128. local p = game.Players.LocalPlayer
  129.  
  130. local Humanoid = p.Character:WaitForChild("Humanoid")
  131.  
  132.  
  133. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  134.  
  135. animTrack:Stop()
  136.  
  137. end
  138.  
  139.  
  140. local AnimAnim = Instance.new("Animation")
  141.  
  142. AnimAnim.AnimationId = "rbxassetid://" -- the specific anim
  143.  
  144. local Anim = Humanoid:LoadAnimation(AnimAnim)
  145.  
  146.  
  147. local startTime = 1.8 -- speed for specific
  148.  
  149.  
  150. Anim:Play()
  151.  
  152. Anim:AdjustSpeed(0)
  153.  
  154. Anim.TimePosition = startTime
  155.  
  156. Anim:AdjustSpeed(1)
  157.  
  158.  
  159. end
  160.  
  161. end
  162.  
  163. -- end of move 1
  164.  
  165. -- move 2
  166. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  167.  
  168.  
  169. local animationId = 13560306510
  170. -- the move that it will track
  171.  
  172.  
  173. local player = game.Players.LocalPlayer
  174.  
  175. local character = player.Character or player.CharacterAdded:Wait()
  176.  
  177. local humanoid = character:WaitForChild("Humanoid")
  178.  
  179.  
  180. local function onAnimationPlayed(animationTrack)
  181.  
  182. if animationTrack.Animation.AnimationId == "rbxassetid://13560306510
  183. " .. animationId then
  184.  
  185.  
  186. local p = game.Players.LocalPlayer
  187.  
  188. local Humanoid = p.Character:WaitForChild("Humanoid")
  189.  
  190.  
  191. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  192.  
  193. animTrack:Stop()
  194.  
  195. end
  196.  
  197.  
  198. local AnimAnim = Instance.new("Animation")
  199.  
  200. AnimAnim.AnimationId = "rbxassetid://12534735382" -- the specific move ur gonna replace
  201.  
  202. local Anim = Humanoid:LoadAnimation(AnimAnim)
  203.  
  204.  
  205. local startTime = 0 -- speed for the specific anim
  206.  
  207.  
  208. Anim:Play()
  209.  
  210. Anim:AdjustSpeed(0)
  211.  
  212. Anim.TimePosition = startTime
  213.  
  214. Anim:AdjustSpeed(1.3)
  215.  
  216.  
  217. end
  218.  
  219. end
  220.  
  221. -- end of move 2
  222.  
  223. -- move 3
  224.  
  225. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  226.  
  227.  
  228. local animationId = 18716667710 -- the anim that will track
  229.  
  230.  
  231. local player = game.Players.LocalPlayer
  232.  
  233. local character = player.Character or player.CharacterAdded:Wait()
  234.  
  235. local humanoid = character:WaitForChild("Humanoid")
  236.  
  237.  
  238. local function onAnimationPlayed(animationTrack)
  239.  
  240. if animationTrack.Animation.AnimationId == "rbxassetid://18716667710" .. animationId then
  241.  
  242.  
  243. local p = game.Players.LocalPlayer
  244.  
  245. local Humanoid = p.Character:WaitForChild("Humanoid")
  246.  
  247.  
  248. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  249.  
  250. animTrack:Stop()
  251.  
  252. end
  253.  
  254.  
  255. local AnimAnim = Instance.new("Animation")
  256.  
  257. AnimAnim.AnimationId = "rbxassetid://13294790250" -- the specific anim
  258.  
  259. local Anim = Humanoid:LoadAnimation(AnimAnim)
  260.  
  261.  
  262. local startTime = 0.5 -- speed for specific anim
  263.  
  264.  
  265. Anim:Play()
  266.  
  267. Anim:AdjustSpeed(0)
  268.  
  269. Anim.TimePosition = startTime
  270.  
  271. Anim:AdjustSpeed(1)
  272.  
  273.  
  274. delay(1.8, function()
  275.  
  276. Anim:Stop()
  277.  
  278. end)
  279.  
  280.  
  281. end
  282.  
  283. end
  284.  
  285. -- end of move 3
  286.  
  287. -- move 4
  288.  
  289. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  290.  
  291.  
  292. local animationId = 18716667710 -- the specific anim that will get track
  293.  
  294. local player = game.Players.LocalPlayer
  295.  
  296. local character = player.Character or player.CharacterAdded:Wait()
  297.  
  298. local humanoid = character:WaitForChild("Humanoid")
  299.  
  300.  
  301. local function onAnimationPlayed(animationTrack)
  302.  
  303. if animationTrack.Animation.AnimationId == "rbxassetid://18716667710" .. animationId then
  304.  
  305. local p = game.Players.LocalPlayer
  306.  
  307. local Humanoid = p.Character:WaitForChild("Humanoid")
  308.  
  309.  
  310. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  311.  
  312. animTrack:Stop()
  313.  
  314. end
  315.  
  316.  
  317. local AnimAnim = Instance.new("Animation")
  318.  
  319. AnimAnim.AnimationId = "rbxassetid://18464372850" -- the specific anim
  320.  
  321. local Anim = Humanoid:LoadAnimation(AnimAnim)
  322.  
  323.  
  324. local startTime = 2 -- the speed for the specific anim
  325.  
  326.  
  327. Anim:Play()
  328.  
  329. Anim:AdjustSpeed(0)
  330.  
  331. Anim.TimePosition = startTime
  332.  
  333. Anim:AdjustSpeed(1)
  334.  
  335.  
  336. end
  337.  
  338. end
  339.  
  340. -- end of move 4
  341.  
  342. -- ult move 1
  343. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  344.  
  345. local animationId = 16746843881 -- the anim will get track
  346.  
  347.  
  348. local player = game.Players.LocalPlayer
  349.  
  350. local character = player.Character or player.CharacterAdded:Wait()
  351.  
  352. local humanoid = character:WaitForChild("Humanoid")
  353.  
  354.  
  355. local function onAnimationPlayed(animationTrack)
  356.  
  357. if animationTrack.Animation.AnimationId == "rbxassetid://16746843881" .. animationId then
  358.  
  359. local p = game.Players.LocalPlayer
  360.  
  361. local Humanoid = p.Character:WaitForChild("Humanoid")
  362.  
  363.  
  364. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  365.  
  366. animTrack:Stop()
  367.  
  368. end
  369.  
  370.  
  371. local AnimAnim = Instance.new("Animation")
  372.  
  373. AnimAnim.AnimationId = "rbxassetid://16746843881" -- the specific anim
  374.  
  375. local Anim = Humanoid:LoadAnimation(AnimAnim)
  376.  
  377.  
  378. local startTime = 2 -- speed for specific anim
  379.  
  380. Anim:Play()
  381.  
  382. Anim:AdjustSpeed(0)
  383.  
  384. Anim.TimePosition = startTime
  385.  
  386. Anim:AdjustSpeed(0.5)
  387.  
  388.  
  389. end
  390.  
  391. end
  392.  
  393. -- end of ult move 1
  394.  
  395. -- wall combo
  396.  
  397. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  398.  
  399. local animationId = 18903642853 -- the anim that will get track
  400.  
  401.  
  402. local player = game.Players.LocalPlayer
  403.  
  404. local character = player.Character or player.CharacterAdded:Wait()
  405.  
  406. local humanoid = character:WaitForChild("Humanoid")
  407.  
  408.  
  409. local function onAnimationPlayed(animationTrack)
  410.  
  411. if animationTrack.Animation.AnimationId == "rbxassetid://18903642853" .. animationId then
  412.  
  413. local p = game.Players.LocalPlayer
  414.  
  415. local Humanoid = p.Character:WaitForChild("Humanoid")
  416.  
  417.  
  418. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  419.  
  420. animTrack:Stop()
  421.  
  422. end
  423.  
  424.  
  425. local AnimAnim = Instance.new("Animation")
  426.  
  427. AnimAnim.AnimationId = "rbxassetid://18903642853" -- the specific anim
  428.  
  429. local Anim = Humanoid:LoadAnimation(AnimAnim)
  430.  
  431.  
  432. local startTime = 0.05 -- speed for the specific anim
  433.  
  434.  
  435. Anim:Play()
  436.  
  437. Anim:AdjustSpeed(0)
  438.  
  439. Anim.TimePosition = startTime
  440.  
  441. Anim:AdjustSpeed(1)
  442.  
  443.  
  444. end
  445.  
  446. end
  447.  
  448. -- end of wall combo
  449.  
  450. -- serious punch
  451.  
  452. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  453.  
  454. local animationId = 13071982935 -- the anim will get track
  455.  
  456.  
  457. local player = game.Players.LocalPlayer
  458.  
  459. local character = player.Character or player.CharacterAdded:Wait()
  460.  
  461. local humanoid = character:WaitForChild("Humanoid")
  462.  
  463.  
  464. local function onAnimationPlayed(animationTrack)
  465.  
  466. if animationTrack.Animation.AnimationId == "rbxassetid://13071982935" .. animationId then
  467.  
  468. local p = game.Players.LocalPlayer
  469.  
  470. local Humanoid = p.Character:WaitForChild("Humanoid")
  471.  
  472.  
  473. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  474.  
  475. animTrack:Stop()
  476.  
  477. end
  478.  
  479.  
  480. local AnimAnim = Instance.new("Animation")
  481.  
  482. AnimAnim.AnimationId = "rbxassetid://13073745835" -- the specific anim
  483.  
  484. local Anim = Humanoid:LoadAnimation(AnimAnim)
  485.  
  486.  
  487. local startTime = 0 -- speed of specific anim
  488.  
  489.  
  490. Anim:Play()
  491.  
  492. Anim:AdjustSpeed(0)
  493.  
  494. Anim.TimePosition = startTime
  495.  
  496. Anim:AdjustSpeed(0.2)
  497.  
  498.  
  499. end
  500.  
  501. end
  502.  
  503. -- end of serious punch
  504.  
  505. -- ult anim
  506.  
  507. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  508.  
  509.  
  510. local animationId = 15507138928 -- the anim will get track
  511.  
  512.  
  513. local player = game.Players.LocalPlayer
  514.  
  515. local character = player.Character or player.CharacterAdded:Wait()
  516.  
  517. local humanoid = character:WaitForChild("Humanoid")
  518.  
  519.  
  520. local function onAnimationPlayed(animationTrack)
  521.  
  522. if animationTrack.Animation.AnimationId == "rbxassetid://15507138928" .. animationId then
  523.  
  524. local p = game.Players.LocalPlayer
  525.  
  526. local Humanoid = p.Character:WaitForChild("Humanoid")
  527.  
  528.  
  529. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  530.  
  531. animTrack:Stop()
  532.  
  533. end
  534.  
  535.  
  536. local AnimAnim = Instance.new("Animation")
  537.  
  538. AnimAnim.AnimationId = "rbxassetid://15507138928" -- the specific anim
  539.  
  540. local Anim = Humanoid:LoadAnimation(AnimAnim)
  541.  
  542.  
  543. local startTime = 0 -- the specific anim
  544.  
  545.  
  546. Anim:Play()
  547.  
  548. Anim:AdjustSpeed(0)
  549.  
  550. Anim.TimePosition = startTime
  551.  
  552. Anim:AdjustSpeed(1)
  553.  
  554. end
  555.  
  556. end
  557.  
  558. -- the end of ult anim
  559.  
  560. -- front dash
  561.  
  562. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  563.  
  564.  
  565. local animationId = 10479335397 -- the anim will get track
  566.  
  567.  
  568. local player = game.Players.LocalPlayer
  569.  
  570. local character = player.Character or player.CharacterAdded:Wait()
  571.  
  572. local humanoid = character:WaitForChild("Humanoid")
  573.  
  574.  
  575. local function onAnimationPlayed(animationTrack)
  576.  
  577. if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  578.  
  579. local p = game.Players.LocalPlayer
  580.  
  581. local Humanoid = p.Character:WaitForChild("Humanoid")
  582.  
  583.  
  584. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  585.  
  586. animTrack:Stop()
  587.  
  588. end
  589.  
  590.  
  591. local AnimAnim = Instance.new("Animation")
  592.  
  593. AnimAnim.AnimationId = "rbxassetid://14046756619" -- the specific anim
  594.  
  595. local Anim = Humanoid:LoadAnimation(AnimAnim)
  596.  
  597.  
  598. local startTime = 0 -- the specific anim
  599.  
  600.  
  601. Anim:Play()
  602.  
  603. Anim:AdjustSpeed(0)
  604.  
  605. Anim.TimePosition = startTime
  606.  
  607. Anim:AdjustSpeed(0.7)
  608.  
  609.  
  610. delay(1.2, function()
  611.  
  612. Anim:Stop()
  613.  
  614. end)
  615.  
  616.  
  617. end
  618.  
  619. end
  620.  
  621. -- end of front dash
  622.  
  623. -- mini uppercut
  624.  
  625. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  626.  
  627.  
  628. local animationId = 10503381238 -- the anim will get track
  629.  
  630.  
  631. local player = game.Players.LocalPlayer
  632.  
  633. local character = player.Character or player.CharacterAdded:Wait()
  634.  
  635. local humanoid = character:WaitForChild("Humanoid")
  636.  
  637.  
  638. local function onAnimationPlayed(animationTrack)
  639.  
  640. if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  641.  
  642. local p = game.Players.LocalPlayer
  643.  
  644. local Humanoid = p.Character:WaitForChild("Humanoid")
  645.  
  646.  
  647. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  648.  
  649. animTrack:Stop()
  650.  
  651. end
  652.  
  653.  
  654. local AnimAnim = Instance.new("Animation")
  655.  
  656. AnimAnim.AnimationId = "rbxassetid://14900168720" -- the specific anim
  657.  
  658. local Anim = Humanoid:LoadAnimation(AnimAnim)
  659.  
  660.  
  661. local startTime = 1.3 -- the speed for specific anim
  662.  
  663.  
  664. Anim:Play()
  665.  
  666. Anim:AdjustSpeed(0)
  667.  
  668. Anim.TimePosition = startTime
  669.  
  670. Anim:AdjustSpeed(1)
  671.  
  672.  
  673. end
  674.  
  675. end
  676.  
  677. -- end of mini upper cut
  678.  
  679. -- downslam
  680.  
  681. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  682.  
  683.  
  684. local animationId = 10470104242 -- the anim that will get track
  685.  
  686.  
  687. local player = game.Players.LocalPlayer
  688.  
  689. local character = player.Character or player.CharacterAdded:Wait()
  690.  
  691. local humanoid = character:WaitForChild("Humanoid")
  692.  
  693.  
  694. local function onAnimationPlayed(animationTrack)
  695.  
  696. if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  697.  
  698. local p = game.Players.LocalPlayer
  699.  
  700. local Humanoid = p.Character:WaitForChild("Humanoid")
  701.  
  702.  
  703. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  704.  
  705. animTrack:Stop()
  706.  
  707. end
  708.  
  709.  
  710. local AnimAnim = Instance.new("Animation")
  711.  
  712. AnimAnim.AnimationId = "rbxassetid://18962792456" -- the specific anim
  713.  
  714. local Anim = Humanoid:LoadAnimation(AnimAnim)
  715.  
  716.  
  717. local startTime = 0 -- the speed for specific anim
  718.  
  719.  
  720. wait(0.2)
  721.  
  722. Anim:Play()
  723.  
  724. Anim:AdjustSpeed(0)
  725.  
  726. Anim.TimePosition = startTime
  727.  
  728. Anim:AdjustSpeed(1)
  729.  
  730.  
  731. end
  732.  
  733. end
  734.  
  735. -- end of downslam
  736.  
  737. -- m1's
  738.  
  739. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  740.  
  741.  
  742. local Players = game:GetService("Players")
  743.  
  744. local player = Players.LocalPlayer
  745.  
  746. local character = player.Character or player.CharacterAdded:Wait()
  747.  
  748. local humanoid = character:WaitForChild("Humanoid")
  749.  
  750. -- the anim that will get track
  751.  
  752. local animationIdsToStop = {
  753.  
  754. [10469493270] = true,
  755.  
  756. [10469630950] = true,
  757.  
  758. [10469639222] = true,
  759.  
  760. [10469643643] = true,
  761.  
  762. }
  763.  
  764. -- the specific anim
  765.  
  766. local replacementAnimations = {
  767.  
  768. ["10469643643"] = "rbxassetid://17325537719", -- 4th m1's dont change the [12345678910] change the rbxassetid://123..
  769.  
  770. ["10469639222"] = "rbxassetid://18716143973", -- 3rd m1's dont change the [12345678910] change the rbxassetid://123..
  771.  
  772. ["10469630950"] = "rbxassetid://16515520431", -- 2nd m1's dont change the [12345678910] change the rbxassetid://123..
  773.  
  774. ["10469493270"] = "rbxassetid://15259161390", -- 1st m1's dont change the [12345678910] change the rbxassetid://123..
  775.  
  776. }
  777.  
  778.  
  779. local queue = {}
  780.  
  781. local isAnimating = false
  782.  
  783.  
  784. local function playReplacementAnimation(animationId)
  785.  
  786. if isAnimating then
  787.  
  788. table.insert(queue, animationId)
  789.  
  790. return
  791.  
  792. end
  793.  
  794. -- end of m1s
  795.  
  796. -- ignore
  797.  
  798.  
  799.  
  800. isAnimating = true
  801.  
  802. local replacementAnimationId = replacementAnimations[tostring(animationId)]
  803.  
  804. if replacementAnimationId then
  805.  
  806. local AnimAnim = Instance.new("Animation")
  807.  
  808. AnimAnim.AnimationId = replacementAnimationId
  809.  
  810. local Anim = humanoid:LoadAnimation(AnimAnim)
  811.  
  812. Anim:Play()
  813.  
  814.  
  815.  
  816. Anim.Stopped:Connect(function()
  817.  
  818. isAnimating = false
  819.  
  820. if #queue > 0 then
  821.  
  822. local nextAnimationId = table.remove(queue, 1)
  823.  
  824. playReplacementAnimation(nextAnimationId)
  825.  
  826. end
  827.  
  828. end)
  829.  
  830. else
  831.  
  832. isAnimating = false
  833.  
  834. end
  835.  
  836. end
  837.  
  838.  
  839. local function stopSpecificAnimations()
  840.  
  841. for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do
  842.  
  843. local animationId = tonumber(track.Animation.AnimationId:match("%d+"))
  844.  
  845. if animationIdsToStop[animationId] then
  846.  
  847. track:Stop()
  848.  
  849. end
  850.  
  851. end
  852.  
  853. end
  854.  
  855.  
  856. local function onAnimationPlayed(animationTrack)
  857.  
  858. local animationId = tonumber(animationTrack.Animation.AnimationId:match("%d+"))
  859.  
  860. if animationIdsToStop[animationId] then
  861.  
  862. stopSpecificAnimations()
  863.  
  864. animationTrack:Stop()
  865.  
  866.  
  867.  
  868. local replacementAnimationId = replacementAnimations[tostring(animationId)]
  869.  
  870. if replacementAnimationId then
  871.  
  872. playReplacementAnimation(animationId)
  873.  
  874. end
  875.  
  876. end
  877.  
  878. end
  879.  
  880.  
  881. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  882.  
  883.  
  884. local player = game.Players.LocalPlayer
  885.  
  886. local character = player.Character or player.CharacterAdded:Wait()
  887.  
  888. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  889.  
  890.  
  891. local function onBodyVelocityAdded(bodyVelocity)
  892.  
  893. if bodyVelocity:IsA("BodyVelocity") then
  894.  
  895. bodyVelocity.Velocity = Vector3.new(bodyVelocity.Velocity.X, 0, bodyVelocity.Velocity.Z)
  896.  
  897. end
  898.  
  899. end
  900.  
  901.  
  902. character.DescendantAdded:Connect(onBodyVelocityAdded)
  903.  
  904.  
  905. for _, descendant in pairs(character:GetDescendants()) do
  906.  
  907. onBodyVelocityAdded(descendant)
  908.  
  909. end
  910.  
  911.  
  912. player.CharacterAdded:Connect(function(newCharacter)
  913.  
  914. character = newCharacter
  915.  
  916. humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  917.  
  918. character.DescendantAdded:Connect(onBodyVelocityAdded)
  919.  
  920.  
  921.  
  922. for _, descendant in pairs(character:GetDescendants()) do
  923.  
  924. onBodyVelocityAdded(descendant)
  925.  
  926. end
  927.  
  928. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement