Advertisement
Henzo09

test script by henzo

Nov 20th, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.99 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2.  
  3. local playerGui = player.PlayerGui
  4.  
  5. local hotbar = playerGui:FindFirstChild("Hotbar")
  6.  
  7. local backpack = hotbar:FindFirstChild("Backpack")
  8.  
  9. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  10.  
  11. local baseButton = hotbarFrame:FindFirstChild("1").Base
  12.  
  13. local ToolName = baseButton.ToolName
  14.  
  15.  
  16. ToolName.Text = "SUPER PUNCH"
  17.  
  18.  
  19. local player = game.Players.LocalPlayer
  20.  
  21. local playerGui = player.PlayerGui
  22.  
  23. local hotbar = playerGui:FindFirstChild("Hotbar")
  24.  
  25. local backpack = hotbar:FindFirstChild("Backpack")
  26.  
  27. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  28.  
  29. local baseButton = hotbarFrame:FindFirstChild("2").Base
  30.  
  31. local ToolName = baseButton.ToolName
  32.  
  33.  
  34. ToolName.Text = "SPEEDY PUNCHS"
  35.  
  36.  
  37. local player = game.Players.LocalPlayer
  38.  
  39. local playerGui = player.PlayerGui
  40.  
  41. local hotbar = playerGui:FindFirstChild("Hotbar")
  42.  
  43. local backpack = hotbar:FindFirstChild("Backpack")
  44.  
  45. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  46.  
  47. local baseButton = hotbarFrame:FindFirstChild("3").Base
  48.  
  49. local ToolName = baseButton.ToolName
  50.  
  51.  
  52. ToolName.Text = "SLA"
  53.  
  54.  
  55. local player = game.Players.LocalPlayer
  56.  
  57. local playerGui = player.PlayerGui
  58.  
  59. local hotbar = playerGui:FindFirstChild("Hotbar")
  60.  
  61. local backpack = hotbar:FindFirstChild("Backpack")
  62.  
  63. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  64.  
  65. local baseButton = hotbarFrame:FindFirstChild("4").Base
  66.  
  67. local ToolName = baseButton.ToolName
  68.  
  69.  
  70. ToolName.Text = "UPPERCUT MAXIMO"
  71.  
  72.  
  73. local Players = game:GetService("Players")
  74.  
  75. local player = Players.LocalPlayer
  76.  
  77. local playerGui = player:WaitForChild("PlayerGui")
  78.  
  79.  
  80. local function findGuiAndSetText()
  81.  
  82.     local screenGui = playerGui:FindFirstChild("ScreenGui")
  83.  
  84.     if screenGui then
  85.  
  86.         local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
  87.  
  88.         if magicHealthFrame then
  89.  
  90.             local textLabel = magicHealthFrame:FindFirstChild("TextLabel")
  91.  
  92.             if textLabel then
  93.  
  94.                 textLabel.Text = "Super Saiyan"
  95.  
  96.             end
  97.  
  98.         end
  99.  
  100.     end
  101.  
  102. end
  103.  
  104.  
  105. playerGui.DescendantAdded:Connect(findGuiAndSetText)
  106.  
  107. findGuiAndSetText()
  108.  
  109.  
  110. local animationId = 10468665991
  111.  
  112.  
  113. local player = game.Players.LocalPlayer
  114.  
  115. local character = player.Character or player.CharacterAdded:Wait()
  116.  
  117. local humanoid = character:WaitForChild("Humanoid")
  118.  
  119.  
  120. local function onAnimationPlayed(animationTrack)
  121.  
  122.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  123.  
  124.  
  125. local p = game.Players.LocalPlayer
  126.  
  127. local Humanoid = p.Character:WaitForChild("Humanoid")
  128.  
  129.  
  130. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  131.  
  132.     animTrack:Stop()
  133.  
  134. end
  135.  
  136. -- First move
  137. local AnimAnim = Instance.new("Animation")
  138.  
  139. AnimAnim.AnimationId = "rbxassetid://18715994424"
  140.  
  141. local Anim = Humanoid:LoadAnimation(AnimAnim)
  142.  
  143.  
  144. local startTime = 0.2
  145.  
  146.  
  147. Anim:Play()
  148.  
  149. Anim:AdjustSpeed(0)
  150.  
  151. Anim.TimePosition = startTime
  152.  
  153. Anim:AdjustSpeed(1)
  154.  
  155.  
  156.     end
  157.  
  158. end
  159.  
  160.  
  161. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  162.  
  163.  
  164. local animationId = 10466974800
  165.  
  166.  
  167. local player = game.Players.LocalPlayer
  168.  
  169. local character = player.Character or player.CharacterAdded:Wait()
  170.  
  171. local humanoid = character:WaitForChild("Humanoid")
  172.  
  173.  
  174. local function onAnimationPlayed(animationTrack)
  175.  
  176.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  177.  
  178.  
  179. local p = game.Players.LocalPlayer
  180.  
  181. local Humanoid = p.Character:WaitForChild("Humanoid")
  182.  
  183.  
  184. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  185.  
  186.     animTrack:Stop()
  187.  
  188. end
  189.  
  190. -- second move
  191. local AnimAnim = Instance.new("Animation")
  192.  
  193. AnimAnim.AnimationId = "rbxassetid://13560306510"
  194.  
  195. local Anim = Humanoid:LoadAnimation(AnimAnim)
  196.  
  197.  
  198. local startTime = 0.2
  199.  
  200.  
  201. Anim:Play()
  202.  
  203. Anim:AdjustSpeed(0)
  204.  
  205. Anim.TimePosition = startTime
  206.  
  207. Anim:AdjustSpeed(0.9)
  208.  
  209.  
  210.     end
  211.  
  212. end
  213.  
  214.  
  215. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  216.  
  217.  
  218. local animationId = 10471336737
  219.  
  220.  
  221. local player = game.Players.LocalPlayer
  222.  
  223. local character = player.Character or player.CharacterAdded:Wait()
  224.  
  225. local humanoid = character:WaitForChild("Humanoid")
  226.  
  227.  
  228. local function onAnimationPlayed(animationTrack)
  229.  
  230.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  231.  
  232.  
  233. local p = game.Players.LocalPlayer
  234.  
  235. local Humanoid = p.Character:WaitForChild("Humanoid")
  236.  
  237.  
  238. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  239.  
  240.     animTrack:Stop()
  241.  
  242. end
  243.  
  244. -- third move
  245. local AnimAnim = Instance.new("Animation")
  246.  
  247. AnimAnim.AnimationId = "rbxassetid://18462088986"
  248.  
  249. local Anim = Humanoid:LoadAnimation(AnimAnim)
  250.  
  251.  
  252. local startTime = 5.3
  253.  
  254.  
  255. Anim:Play()
  256.  
  257. Anim:AdjustSpeed(0)
  258.  
  259. Anim.TimePosition = startTime
  260.  
  261. Anim:AdjustSpeed(2.9)
  262.  
  263.  
  264. delay(1.8, function()
  265.  
  266.     Anim:Stop()
  267.  
  268. end)
  269.  
  270.  
  271.     end
  272.  
  273. end
  274.  
  275.  
  276. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  277.  
  278.  
  279. local animationId = 12510170988
  280.  
  281.  
  282. local player = game.Players.LocalPlayer
  283.  
  284. local character = player.Character or player.CharacterAdded:Wait()
  285.  
  286. local humanoid = character:WaitForChild("Humanoid")
  287.  
  288.  
  289. local function onAnimationPlayed(animationTrack)
  290.  
  291.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  292.  
  293. local p = game.Players.LocalPlayer
  294.  
  295. local Humanoid = p.Character:WaitForChild("Humanoid")
  296.  
  297.  
  298. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  299.  
  300.     animTrack:Stop()
  301.  
  302. end
  303.  
  304. -- fourth move (last move)
  305. local AnimAnim = Instance.new("Animation")
  306.  
  307. AnimAnim.AnimationId = "rbxassetid://17325522388"
  308.  
  309. local Anim = Humanoid:LoadAnimation(AnimAnim)
  310.  
  311.  
  312. local startTime = 0.1
  313.  
  314.  
  315. Anim:Play()
  316.  
  317. Anim:AdjustSpeed(0)
  318.  
  319. Anim.TimePosition = startTime
  320.  
  321. Anim:AdjustSpeed(1)
  322.  
  323.  
  324.     end
  325.  
  326. end
  327.  
  328. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  329.  
  330. local animationId = 11343318134
  331.  
  332.  
  333. local player = game.Players.LocalPlayer
  334.  
  335. local character = player.Character or player.CharacterAdded:Wait()
  336.  
  337. local humanoid = character:WaitForChild("Humanoid")
  338.  
  339.  
  340. local function onAnimationPlayed(animationTrack)
  341.  
  342.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  343.  
  344. local p = game.Players.LocalPlayer
  345.  
  346. local Humanoid = p.Character:WaitForChild("Humanoid")
  347.  
  348.  
  349. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  350.  
  351.     animTrack:Stop()
  352.  
  353. end
  354.  
  355. -- serious punch
  356.  
  357. local AnimAnim = Instance.new("Animation")
  358.  
  359. AnimAnim.AnimationId = "rbxassetid://18435535291"
  360.  
  361. local Anim = Humanoid:LoadAnimation(AnimAnim)
  362.  
  363.  
  364. local startTime = 2
  365.  
  366. Anim:Play()
  367.  
  368. Anim:AdjustSpeed(0)
  369.  
  370. Anim.TimePosition = startTime
  371.  
  372. Anim:AdjustSpeed(0.5)
  373.  
  374.  
  375.     end
  376.  
  377. end
  378.  
  379. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  380.  
  381. local animationId = 15955393872
  382.  
  383.  
  384. local player = game.Players.LocalPlayer
  385.  
  386. local character = player.Character or player.CharacterAdded:Wait()
  387.  
  388. local humanoid = character:WaitForChild("Humanoid")
  389.  
  390.  
  391. local function onAnimationPlayed(animationTrack)
  392.  
  393.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  394.  
  395. local p = game.Players.LocalPlayer
  396.  
  397. local Humanoid = p.Character:WaitForChild("Humanoid")
  398.  
  399.  
  400. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  401.  
  402.     animTrack:Stop()
  403.  
  404. end
  405.  
  406. -- Wallcombo
  407. local AnimAnim = Instance.new("Animation")
  408.  
  409. AnimAnim.AnimationId = "rbxassetid://18447913645"
  410.  
  411. local Anim = Humanoid:LoadAnimation(AnimAnim)
  412.  
  413.  
  414. local startTime = 0.2
  415.  
  416.  
  417. Anim:Play()
  418.  
  419. Anim:AdjustSpeed(0)
  420.  
  421. Anim.TimePosition = startTime
  422.  
  423. Anim:AdjustSpeed(1)
  424.  
  425.  
  426.     end
  427.  
  428. end
  429.  
  430. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  431.  
  432. local animationId = 12983333733
  433.  
  434.  
  435. local player = game.Players.LocalPlayer
  436.  
  437. local character = player.Character or player.CharacterAdded:Wait()
  438.  
  439. local humanoid = character:WaitForChild("Humanoid")
  440.  
  441.  
  442. local function onAnimationPlayed(animationTrack)
  443.  
  444.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  445.  
  446. local p = game.Players.LocalPlayer
  447.  
  448. local Humanoid = p.Character:WaitForChild("Humanoid")
  449.  
  450.  
  451. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  452.  
  453.     animTrack:Stop()
  454.  
  455. end
  456.  
  457.  
  458. -- death counter
  459. local AnimAnim = Instance.new("Animation")
  460.  
  461. AnimAnim.AnimationId = "rbxassetid://17325254223"
  462.  
  463. local Anim = Humanoid:LoadAnimation(AnimAnim)
  464.  
  465.  
  466. local startTime = 0.3
  467.  
  468.  
  469. Anim:Play()
  470.  
  471. Anim:AdjustSpeed(0)
  472.  
  473. Anim.TimePosition = startTime
  474.  
  475. Anim:AdjustSpeed(0.2)
  476.  
  477.  
  478.     end
  479.  
  480. end
  481.  
  482. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  483.  
  484.  
  485. local animationId = 12447707844
  486.  
  487.  
  488. local player = game.Players.LocalPlayer
  489.  
  490. local character = player.Character or player.CharacterAdded:Wait()
  491.  
  492. local humanoid = character:WaitForChild("Humanoid")
  493.  
  494.  
  495. local function onAnimationPlayed(animationTrack)
  496.  
  497.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  498.  
  499. local p = game.Players.LocalPlayer
  500.  
  501. local Humanoid = p.Character:WaitForChild("Humanoid")
  502.  
  503.  
  504. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  505.  
  506.     animTrack:Stop()
  507.  
  508. end
  509.  
  510. -- ult anim
  511. local AnimAnim = Instance.new("Animation")
  512.  
  513. AnimAnim.AnimationId = "rbxassetid://17140902079"
  514.  
  515. local Anim = Humanoid:LoadAnimation(AnimAnim)
  516.  
  517.  
  518. local startTime = 0
  519.  
  520.  
  521. Anim:Play()
  522.  
  523. Anim:AdjustSpeed(0)
  524.  
  525. Anim.TimePosition = startTime
  526.  
  527. Anim:AdjustSpeed(1)
  528.  
  529.     end
  530.  
  531. end
  532.  
  533. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  534.  
  535.  
  536. local animationId = 10479335397
  537.  
  538.  
  539. local player = game.Players.LocalPlayer
  540.  
  541. local character = player.Character or player.CharacterAdded:Wait()
  542.  
  543. local humanoid = character:WaitForChild("Humanoid")
  544.  
  545.  
  546. local function onAnimationPlayed(animationTrack)
  547.  
  548.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  549.  
  550. local p = game.Players.LocalPlayer
  551.  
  552. local Humanoid = p.Character:WaitForChild("Humanoid")
  553.  
  554.  
  555. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  556.  
  557.     animTrack:Stop()
  558.  
  559. end
  560.  
  561. -- Dash anim
  562. local AnimAnim = Instance.new("Animation")
  563.  
  564. AnimAnim.AnimationId = "rbxassetid://17838006839"
  565.  
  566. local Anim = Humanoid:LoadAnimation(AnimAnim)
  567.  
  568.  
  569. local startTime = 0.120
  570.  
  571.  
  572. Anim:Play()
  573.  
  574. Anim:AdjustSpeed(0)
  575.  
  576. Anim.TimePosition = startTime
  577.  
  578. Anim:AdjustSpeed(0.7)
  579.  
  580.  
  581. delay(1.2, function()
  582.  
  583.     Anim:Stop()
  584.  
  585. end)
  586.  
  587.  
  588.     end
  589.  
  590. end
  591.  
  592. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  593.  
  594.  
  595. local animationId = 10503381238
  596.  
  597.  
  598. local player = game.Players.LocalPlayer
  599.  
  600. local character = player.Character or player.CharacterAdded:Wait()
  601.  
  602. local humanoid = character:WaitForChild("Humanoid")
  603.  
  604.  
  605. local function onAnimationPlayed(animationTrack)
  606.  
  607.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  608.  
  609. local p = game.Players.LocalPlayer
  610.  
  611. local Humanoid = p.Character:WaitForChild("Humanoid")
  612.  
  613.  
  614. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  615.  
  616.     animTrack:Stop()
  617.  
  618. end
  619.  
  620. -- Uppercut anim
  621. local AnimAnim = Instance.new("Animation")
  622.  
  623. AnimAnim.AnimationId = "rbxassetid://18169291044"
  624.  
  625. local Anim = Humanoid:LoadAnimation(AnimAnim)
  626.  
  627.  
  628. local startTime = 0.2
  629.  
  630.  
  631. Anim:Play()
  632.  
  633. Anim:AdjustSpeed(0)
  634.  
  635. Anim.TimePosition = startTime
  636.  
  637. Anim:AdjustSpeed(1)
  638.  
  639.  
  640.     end
  641.  
  642. end
  643.  
  644. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  645.  
  646.  
  647. local animationId = 10470104242
  648.  
  649.  
  650. local player = game.Players.LocalPlayer
  651.  
  652. local character = player.Character or player.CharacterAdded:Wait()
  653.  
  654. local humanoid = character:WaitForChild("Humanoid")
  655.  
  656.  
  657. local function onAnimationPlayed(animationTrack)
  658.  
  659.     if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  660.  
  661. local p = game.Players.LocalPlayer
  662.  
  663. local Humanoid = p.Character:WaitForChild("Humanoid")
  664.  
  665.  
  666. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  667.  
  668.     animTrack:Stop()
  669.  
  670. end
  671.  
  672. -- Downslam anim
  673. local AnimAnim = Instance.new("Animation")
  674.  
  675. AnimAnim.AnimationId = "rbxassetid://17858878027"
  676.  
  677. local Anim = Humanoid:LoadAnimation(AnimAnim)
  678.  
  679.  
  680. local startTime = 0.1120
  681.  
  682.  
  683. wait(0.2)
  684.  
  685. Anim:Play()
  686.  
  687. Anim:AdjustSpeed(0.10)
  688.  
  689. Anim.TimePosition = startTime
  690.  
  691. Anim:AdjustSpeed(1)
  692.  
  693.  
  694.     end
  695.  
  696. end
  697.  
  698. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  699.  
  700.  
  701. local Players = game:GetService("Players")
  702.  
  703. local player = Players.LocalPlayer
  704.  
  705. local character = player.Character or player.CharacterAdded:Wait()
  706.  
  707. local humanoid = character:WaitForChild("Humanoid")
  708.  
  709. -- Saitama m1s
  710.  
  711. local animationIdsToStop = {
  712.  
  713.     [10469493270] = true,
  714.  
  715.     [10469630950] = true,
  716.  
  717.     [10469639222] = true,
  718.  
  719.     [10469643643] = true,
  720.  
  721. }
  722.  
  723. -- rechange m1s
  724.  
  725. local replacementAnimations = {
  726.  
  727.     ["10469643643"] = "rbxassetid://13491635433 ",
  728.  
  729.     ["10469639222"] = "rbxassetid://13295919399",
  730.  
  731.     ["10469630950"] = "rbxassetid://17889461810",
  732.  
  733.     ["10469493270"] = "rbxassetid://17889458563",
  734.  
  735. }
  736.  
  737.  
  738. local queue = {}
  739.  
  740. local isAnimating = false
  741.  
  742.  
  743. local function playReplacementAnimation(animationId)
  744.  
  745.     if isAnimating then
  746.  
  747.         table.insert(queue, animationId)
  748.  
  749.         return
  750.  
  751.     end
  752.  
  753.    
  754.  
  755.     isAnimating = true
  756.  
  757.     local replacementAnimationId = replacementAnimations[tostring(animationId)]
  758.  
  759.     if replacementAnimationId then
  760.  
  761.         local AnimAnim = Instance.new("Animation")
  762.  
  763.         AnimAnim.AnimationId = replacementAnimationId
  764.  
  765.         local Anim = humanoid:LoadAnimation(AnimAnim)
  766.  
  767.         Anim:Play()
  768.  
  769.        
  770.  
  771.         Anim.Stopped:Connect(function()
  772.  
  773.             isAnimating = false
  774.  
  775.             if #queue > 0 then
  776.  
  777.                 local nextAnimationId = table.remove(queue, 1)
  778.  
  779.                 playReplacementAnimation(nextAnimationId)
  780.  
  781.             end
  782.  
  783.         end)
  784.  
  785.     else
  786.  
  787.         isAnimating = false
  788.  
  789.     end
  790.  
  791. end
  792.  
  793.  
  794. local function stopSpecificAnimations()
  795.  
  796.     for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do
  797.  
  798.         local animationId = tonumber(track.Animation.AnimationId:match("%d+"))
  799.  
  800.         if animationIdsToStop[animationId] then
  801.  
  802.             track:Stop()
  803.  
  804.         end
  805.  
  806.     end
  807.  
  808. end
  809.  
  810.  
  811. local function onAnimationPlayed(animationTrack)
  812.  
  813.     local animationId = tonumber(animationTrack.Animation.AnimationId:match("%d+"))
  814.  
  815.     if animationIdsToStop[animationId] then
  816.  
  817.         stopSpecificAnimations()
  818.  
  819.         animationTrack:Stop()
  820.  
  821.        
  822.  
  823.         local replacementAnimationId = replacementAnimations[tostring(animationId)]
  824.  
  825.         if replacementAnimationId then
  826.  
  827.             playReplacementAnimation(animationId)
  828.  
  829.         end
  830.  
  831.     end
  832.  
  833. end
  834.  
  835.  
  836. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  837.  
  838.  
  839. local player = game.Players.LocalPlayer
  840.  
  841. local character = player.Character or player.CharacterAdded:Wait()
  842.  
  843. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  844.  
  845.  
  846. local function onBodyVelocityAdded(bodyVelocity)
  847.  
  848.     if bodyVelocity:IsA("BodyVelocity") then
  849.  
  850.         bodyVelocity.Velocity = Vector3.new(bodyVelocity.Velocity.X, 0, bodyVelocity.Velocity.Z)
  851.  
  852.     end
  853.  
  854. end
  855.  
  856.  
  857. character.DescendantAdded:Connect(onBodyVelocityAdded)
  858.  
  859.  
  860. for _, descendant in pairs(character:GetDescendants()) do
  861.  
  862.     onBodyVelocityAdded(descendant)
  863.  
  864. end
  865.  
  866.  
  867. player.CharacterAdded:Connect(function(newCharacter)
  868.  
  869.     character = newCharacter
  870.  
  871.     humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  872.  
  873.     character.DescendantAdded:Connect(onBodyVelocityAdded)
  874.  
  875.    
  876.  
  877.     for _, descendant in pairs(character:GetDescendants()) do
  878.  
  879.         onBodyVelocityAdded(descendant)
  880.  
  881.     end
  882.  
  883. end)
  884.  
  885. -- Tp tooooooooooooooolll
  886. local Players = game:GetService("Players")
  887. local LocalPlayer = Players.LocalPlayer
  888.  
  889.  
  890. while not LocalPlayer do
  891.     wait()
  892.     LocalPlayer = Players.LocalPlayer
  893. end
  894.  
  895.  
  896. local function createTool(name)
  897.     local newTool = Instance.new("Tool")
  898.     newTool.Name = name
  899.     newTool.RequiresHandle = false
  900.     newTool.CanBeDropped = false
  901.     newTool.Parent = LocalPlayer.Backpack
  902.     return newTool
  903. end
  904.  
  905.  
  906. local function bindTeleportLogic(tool)
  907.     tool.Activated:Connect(function()
  908.         teleportToClosestPlayer(tool)
  909.     end)
  910. end
  911.  
  912.  
  913. local tool = createTool("Instant Transmission")
  914. bindTeleportLogic(tool)
  915.  
  916.  
  917. local teleportSound = Instance.new("Sound")
  918. teleportSound.SoundId = "rbxassetid://5066021887"
  919. teleportSound.Volume = 2
  920. teleportSound.Looped = false
  921. teleportSound.PlayOnRemove = false
  922. teleportSound.Parent = LocalPlayer
  923.  
  924. local teleportAnimation = Instance.new("Animation")
  925. teleportAnimation.AnimationId = "rbxassetid://15957361339"
  926.  
  927.  
  928. local teleportDistance = 50
  929.  
  930.  
  931. local cooldownTime = 5
  932. local isOnCooldown = false
  933. local originalToolName = tool.Name
  934.  
  935. local function findClosestPlayer()
  936.     local player = LocalPlayer
  937.     local character = player.Character
  938.     if not character then return nil end
  939.  
  940.     local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  941.     if not humanoidRootPart then return nil end
  942.  
  943.     local closestPlayer = nil
  944.     local shortestDistance = math.huge
  945.  
  946.     for _, otherPlayer in pairs(Players:GetPlayers()) do
  947.         if otherPlayer ~= player and otherPlayer.Character and otherPlayer.Character:FindFirstChild("HumanoidRootPart") then
  948.             local otherHumanoidRootPart = otherPlayer.Character.HumanoidRootPart
  949.             local distance = (humanoidRootPart.Position - otherHumanoidRootPart.Position).magnitude
  950.  
  951.            
  952.             if (not teleportDistance or distance <= teleportDistance) and distance < shortestDistance then
  953.                 shortestDistance = distance
  954.                 closestPlayer = otherPlayer
  955.             end
  956.         end
  957.     end
  958.  
  959.     return closestPlayer, shortestDistance
  960. end
  961.  
  962. function teleportToClosestPlayer(tool)
  963.  
  964.     if isOnCooldown then
  965.         warn("LOW ON ENERGY WAIT 5 SECONDS!")
  966.         return
  967.     end
  968.  
  969.     local player = LocalPlayer
  970.     local character = player.Character or player.CharacterAdded:Wait()
  971.     local humanoid = character:WaitForChild("Humanoid")
  972.     local closestPlayer, distance = findClosestPlayer()
  973.  
  974.     if closestPlayer and closestPlayer.Character then
  975.         local closestHumanoidRootPart = closestPlayer.Character:FindFirstChild("HumanoidRootPart")
  976.         if closestHumanoidRootPart then
  977.             local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  978.            
  979.             if not teleportDistance or distance <= teleportDistance then
  980.                
  981.                 isOnCooldown = true
  982.  
  983.                
  984.                 teleportSound:Play()
  985.  
  986.                
  987.                 local animationTrack = humanoid:LoadAnimation(teleportAnimation)
  988.                 animationTrack:Play()
  989.  
  990.                
  991.                 humanoidRootPart.CFrame = closestHumanoidRootPart.CFrame * CFrame.new(0, 0, 1)
  992.  
  993.                
  994.                 animationTrack.Stopped:Connect(function()
  995.                     animationTrack:Stop()
  996.                 end)
  997.  
  998.                
  999.                 if tool and tool.Parent then
  1000.                     tool:Destroy()
  1001.                 end
  1002.                 tool = createTool("Low On Energy!")
  1003.  
  1004.                
  1005.                 wait(cooldownTime)
  1006.  
  1007.                
  1008.                 if tool and tool.Parent then
  1009.                     tool:Destroy()
  1010.                 end
  1011.                 tool = createTool(originalToolName)
  1012.                 bindTeleportLogic(tool)
  1013.                 isOnCooldown = false
  1014.                 print("Energy is back on!")
  1015.             else
  1016.                 warn("No energy is detected")
  1017.             end
  1018.         end
  1019.     end
  1020. end
  1021.  
  1022. -- Credits
  1023. local gui = Instance.new("ScreenGui")
  1024. gui.Name = "CreditsGui"
  1025. gui.ResetOnSpawn = false
  1026. gui.Parent = game.CoreGui
  1027.  
  1028. local frame = Instance.new("Frame")
  1029. frame.Size = UDim2.new(0, 500, 0, 250)
  1030. frame.Position = UDim2.new(0.5, -250, 0.5, -100)
  1031. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1032. frame.BorderSizePixel = 0
  1033. frame.Parent = gui
  1034.  
  1035.  
  1036. local frameGradient = Instance.new("UIGradient")
  1037. frameGradient.Color = ColorSequence.new({
  1038.     ColorSequenceKeypoint.new(0, Color3.fromRGB(180, 180, 180)),
  1039.     ColorSequenceKeypoint.new(0.5, Color3.fromRGB(100, 100, 100)),
  1040.     ColorSequenceKeypoint.new(1, Color3.fromRGB(180, 180, 180))
  1041. })
  1042. frameGradient.Rotation = 90
  1043. frameGradient.Parent = frame
  1044.  
  1045. local frameUICorner = Instance.new("UICorner")
  1046. frameUICorner.CornerRadius = UDim.new(0, 12)
  1047. frameUICorner.Parent = frame
  1048.  
  1049. local topHighlight = Instance.new("Frame")
  1050. topHighlight.Size = UDim2.new(1, 0, 0.1, 0)
  1051. topHighlight.BackgroundTransparency = 0.5
  1052. topHighlight.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1053. topHighlight.Parent = frame
  1054.  
  1055. local highlightGradient = Instance.new("UIGradient")
  1056. highlightGradient.Color = ColorSequence.new({
  1057.     ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  1058.     ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255), 0)
  1059. })
  1060. highlightGradient.Rotation = 90
  1061. highlightGradient.Parent = topHighlight
  1062.  
  1063. local button = Instance.new("TextButton")
  1064. button.Size = UDim2.new(0, 240, 0, 50)
  1065. button.Position = UDim2.new(0.5, -120, 1, -60)
  1066. button.BackgroundColor3 = Color3.fromRGB(130, 130, 130)
  1067. button.Text = ".gg/GigaHub | Moveset"
  1068. button.Font = Enum.Font.GothamBold
  1069. button.TextSize = 24
  1070. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  1071. button.Parent = frame
  1072.  
  1073. local buttonUICorner = Instance.new("UICorner")
  1074. buttonUICorner.CornerRadius = UDim.new(0, 12)
  1075. buttonUICorner.Parent = button
  1076.  
  1077. local buttonGradient = Instance.new("UIGradient")
  1078. buttonGradient.Color = ColorSequence.new({
  1079.     ColorSequenceKeypoint.new(0, Color3.fromRGB(200, 200, 200)),
  1080.     ColorSequenceKeypoint.new(1, Color3.fromRGB(100, 100, 100))
  1081. })
  1082. buttonGradient.Rotation = 90  -- Vertical gradient
  1083. buttonGradient.Parent = button
  1084.  
  1085. button.MouseButton1Click:Connect(function()
  1086.     setclipboard("https://discord.gg/Ssy9TTNGHW")
  1087.     button.Text = "Copied!"
  1088.     wait(1)
  1089.     gui:Destroy()
  1090. end)
  1091.  
  1092. -- cool credits
  1093. local screenGui = Instance.new("ScreenGui")
  1094. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  1095.  
  1096. local textLabel = Instance.new("TextLabel")
  1097. textLabel.Parent = screenGui
  1098. textLabel.Text = "MADE BY HENZO | MOVESET"
  1099. textLabel.Size = UDim2.new(0, 150, 0, 100)
  1100. textLabel.Position = UDim2.new(0.5, -150, 0, 10)
  1101. textLabel.AnchorPoint = Vector2.new(0.5, 0)
  1102. textLabel.BackgroundTransparency = 1
  1103. textLabel.TextColor3 = Color3.new(1, 1, 1)
  1104. textLabel.TextStrokeTransparency = 0.5
  1105. textLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  1106. textLabel.Font = Enum.Font.Cartoon
  1107. textLabel.TextScaled = true
  1108. textLabel.TextTransparency = 1
  1109.  
  1110. local stroke = Instance.new("UIStroke")
  1111. stroke.Parent = textLabel
  1112. stroke.Thickness = 3 -- Thicker outline
  1113. stroke.Color = Color3.fromRGB(0, 0, 0)
  1114. stroke.Transparency = 0.2
  1115.  
  1116. local tweenService = game:GetService("TweenService")
  1117.  
  1118. local fadeInTween = tweenService:Create(textLabel, TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {TextTransparency = 0})
  1119. fadeInTween:Play()
  1120.  
  1121. -- Useless running
  1122. local userInputService = game:GetService("UserInputService")
  1123. local runService = game:GetService("RunService")
  1124. local tweenService = game:GetService("TweenService")  -- Added TweenService for sound fading
  1125. local players = game:GetService("Players")
  1126.  
  1127.  
  1128. local player = players.LocalPlayer
  1129. local isPC = userInputService.KeyboardEnabled
  1130. local isActive = false
  1131. local runSoundId = "rbxassetid://0"
  1132. local runAnimationId = "rbxassetid://18897115785"
  1133. local stopAnimationId = "rbxassetid://13876406148"
  1134.  
  1135.  
  1136. local sound = Instance.new("Sound")
  1137. sound.SoundId = runSoundId
  1138. sound.Looped = true
  1139. sound.Volume = 1  -- Default volume set to 1
  1140. sound.Parent = player:WaitForChild("PlayerGui")
  1141.  
  1142. local tool = Instance.new("Tool")
  1143. tool.Name = "Run"
  1144. tool.RequiresHandle = false
  1145. tool.Parent = player.Backpack
  1146.  
  1147.  
  1148. local animationTrack
  1149. local stopAnimationTrack
  1150. local moveConnection
  1151. local moveSpeed = 250
  1152. local initialSpeed = 0.5
  1153. local speed = initialSpeed
  1154. local elapsedTime = 0
  1155. local changeTime = 2.3
  1156.  
  1157. local fadeDuration = 1
  1158.  
  1159. local trail
  1160.  
  1161. local function createTrail(rootPart)
  1162.     trail = Instance.new("Trail")
  1163.     trail.Attachment0 = Instance.new("Attachment", rootPart)
  1164.     trail.Attachment1 = Instance.new("Attachment", rootPart)
  1165.     trail.Attachment1.Position = Vector3.new(0, -2, 0)
  1166.     trail.Lifetime = 0.5  -- Adjust as needed
  1167.     trail.Color = ColorSequence.new(Color3.new(1, 1, 1))
  1168.     trail.Transparency = NumberSequence.new({
  1169.         NumberSequenceKeypoint.new(0, 0),
  1170.         NumberSequenceKeypoint.new(1, 1)
  1171.     })
  1172.     trail.Enabled = false
  1173.     trail.Parent = rootPart
  1174. end
  1175.  
  1176. local function startMoving(rootPart)
  1177.     trail.Enabled = true
  1178.     moveConnection = runService.RenderStepped:Connect(function(deltaTime)
  1179.         elapsedTime = elapsedTime + deltaTime
  1180.         if elapsedTime >= changeTime then
  1181.             moveSpeed = 350
  1182.         end
  1183.  
  1184.         local lookVector = rootPart.CFrame.LookVector
  1185.         local newVelocity = lookVector * moveSpeed * speed
  1186.         rootPart.Velocity = newVelocity
  1187.     end)
  1188. end
  1189.  
  1190. local function stopMoving(rootPart)
  1191.     if moveConnection then
  1192.         moveConnection:Disconnect()
  1193.         moveConnection = nil
  1194.         speed = initialSpeed
  1195.         elapsedTime = 0 -- Reset elapsed time
  1196.         rootPart.Velocity = Vector3.new(0, 0, 0)
  1197.         trail.Enabled = false
  1198.     end
  1199. end
  1200.  
  1201. local function playStopAnimation(humanoid)
  1202.     local stopAnimation = Instance.new("Animation")
  1203.     stopAnimation.AnimationId = stopAnimationId
  1204.     stopAnimationTrack = humanoid:LoadAnimation(stopAnimation)
  1205.     stopAnimationTrack:Play()
  1206. end
  1207.  
  1208. local function fadeOutSound()
  1209.     local tweenInfo = TweenInfo.new(fadeDuration)
  1210.     local goal = { Volume = 0 }
  1211.  
  1212.  
  1213.     local tween = tweenService:Create(sound, tweenInfo, goal)
  1214.     tween:Play()
  1215.  
  1216.     tween.Completed:Connect(function()
  1217.         sound:Stop()
  1218.         sound.Volume = 1
  1219.     end)
  1220. end
  1221.  
  1222. local function activate()
  1223.     local character = player.Character or player.CharacterAdded:Wait()
  1224.     local humanoid = character:WaitForChild("Humanoid")
  1225.     local rootPart = character:WaitForChild("HumanoidRootPart")
  1226.  
  1227.     rootPart.Anchored = false
  1228.  
  1229.     if not trail then
  1230.         createTrail(rootPart)
  1231.     end
  1232.  
  1233.     local runAnimation = Instance.new("Animation")
  1234.     runAnimation.AnimationId = runAnimationId
  1235.     animationTrack = humanoid:LoadAnimation(runAnimation)
  1236.     animationTrack:Play()
  1237.     animationTrack:AdjustSpeed(1)
  1238.  
  1239.     sound:Play()
  1240.  
  1241.     startMoving(rootPart)
  1242. end
  1243.  
  1244. local function deactivate()
  1245.     local character = player.Character
  1246.     local humanoid = character:WaitForChild("Humanoid")
  1247.     local rootPart = character:WaitForChild("HumanoidRootPart")
  1248.  
  1249.     if animationTrack then
  1250.         animationTrack:Stop()
  1251.     end
  1252.  
  1253.     fadeOutSound()
  1254.  
  1255.     stopMoving(rootPart)
  1256.  
  1257.     playStopAnimation(humanoid)
  1258. end
  1259.  
  1260. local function toggleAbility()
  1261.     if not isActive then
  1262.         activate()
  1263.     else
  1264.         deactivate()
  1265.     end
  1266.     isActive = not isActive
  1267. end
  1268.  
  1269. local function onKeyPress(input)
  1270.     if input.KeyCode == Enum.KeyCode.K then
  1271.         toggleAbility()
  1272.     end
  1273. end
  1274.  
  1275. local function onToolActivated()
  1276.     toggleAbility()
  1277. end
  1278.  
  1279. if isPC then
  1280.     userInputService.InputBegan:Connect(onKeyPress)
  1281. else
  1282.     tool.Activated:Connect(onToolActivated)
  1283. end
  1284.  
  1285. local Players = game:GetService("Players")
  1286. local TweenService = game:GetService("TweenService")
  1287.  
  1288. local player = Players.LocalPlayer
  1289. local playerGui = player:WaitForChild("PlayerGui")
  1290.  
  1291. local function updateBarColor()
  1292.     local screenGui = playerGui:FindFirstChild("ScreenGui")
  1293.     if not screenGui then return end
  1294.  
  1295.     local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
  1296.     if not magicHealthFrame then return end
  1297.  
  1298.     local healthFrame = magicHealthFrame:FindFirstChild("Health")
  1299.     if not healthFrame then return end
  1300.  
  1301.     local barFrame = healthFrame:FindFirstChild("Bar")
  1302.     if not barFrame then return end
  1303.  
  1304.     local imageLabel = barFrame:FindFirstChild("Bar")
  1305.     if not imageLabel or not imageLabel:IsA("ImageLabel") then return end
  1306.  
  1307.     imageLabel.ImageColor3 = Color3.fromRGB(255, 255, 0)
  1308. end
  1309.  
  1310. local function onCharacterAdded(character)
  1311.     updateBarColor()
  1312. end
  1313.  
  1314. local function onPlayerAdded()
  1315.     local character = player.Character or player.CharacterAdded:Wait()
  1316.     onCharacterAdded(character)
  1317.  
  1318.     player.CharacterAdded:Connect(onCharacterAdded)
  1319. end
  1320.  
  1321. Players.PlayerAdded:Connect(onPlayerAdded)
  1322. if player then
  1323.     onPlayerAdded()
  1324. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement