Yhehewgq

Muscle Legends Script

Nov 26th, 2025
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.78 KB | None | 0 0
  1. -- Muscle Legends Script with Rayfield UI
  2. -- Load Rayfield UI Library
  3. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  4.  
  5. -- Variables
  6. local Players = game:Services.Players
  7. local LocalPlayer = Players.LocalPlayer
  8. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  9. local Humanoid = Character:WaitForChild("Humanoid")
  10. local RunService = game:GetService("RunService")
  11.  
  12. -- Settings
  13. local Settings = {
  14.     AutoBench = false,
  15.     AutoWeight = false,
  16.     AutoKill = false,
  17.     AutoKillAll = false,
  18.     TargetPlayer = "",
  19.     FastRebirth = false,
  20.     FastGrind = false,
  21.     SpeedGrind = false,
  22.     FastStrength = false,
  23.     WalkSpeed = 16,
  24.     JumpPower = 50
  25. }
  26.  
  27. -- Create Window
  28. local Window = Rayfield:CreateWindow({
  29.     Name = "Muscle Legends | Script Hub",
  30.     LoadingTitle = "Muscle Legends Script",
  31.     LoadingSubtitle = "by Script Hub",
  32.     ConfigurationSaving = {
  33.         Enabled = true,
  34.         FolderName = "MuscleLegends",
  35.         FileName = "MLConfig"
  36.     },
  37.     Discord = {
  38.         Enabled = false,
  39.         Invite = "noinvitelink",
  40.         RememberJoins = true
  41.     },
  42.     KeySystem = false
  43. })
  44.  
  45. -- Main Tab
  46. local MainTab = Window:CreateTab("🏋️ Main", 4483362458)
  47.  
  48. local MainSection = MainTab:CreateSection("Auto Farm")
  49.  
  50. local AutoBenchToggle = MainTab:CreateToggle({
  51.     Name = "Auto Bench Press",
  52.     CurrentValue = false,
  53.     Flag = "AutoBench",
  54.     Callback = function(Value)
  55.         Settings.AutoBench = Value
  56.         while Settings.AutoBench do
  57.             wait(0.1)
  58.             -- Auto bench press logic
  59.             local args = {
  60.                 [1] = "BenchPress"
  61.             }
  62.             game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  63.         end
  64.     end,
  65. })
  66.  
  67. local AutoWeightToggle = MainTab:CreateToggle({
  68.     Name = "Auto Lift Weights",
  69.     CurrentValue = false,
  70.     Flag = "AutoWeight",
  71.     Callback = function(Value)
  72.         Settings.AutoWeight = Value
  73.         while Settings.AutoWeight do
  74.             wait(0.1)
  75.             -- Auto weight lifting logic
  76.             local args = {
  77.                 [1] = "LiftWeight"
  78.             }
  79.             game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  80.         end
  81.     end,
  82. })
  83.  
  84. local AutoCollectToggle = MainTab:CreateToggle({
  85.     Name = "Auto Collect Coins",
  86.     CurrentValue = false,
  87.     Flag = "AutoCollect",
  88.     Callback = function(Value)
  89.         while Value do
  90.             wait(0.5)
  91.             for _, v in pairs(game:GetService("Workspace").Coins:GetChildren()) do
  92.                 if v:FindFirstChild("TouchInterest") then
  93.                     firetouchinterest(LocalPlayer.Character.HumanoidRootPart, v, 0)
  94.                     wait()
  95.                     firetouchinterest(LocalPlayer.Character.HumanoidRootPart, v, 1)
  96.                 end
  97.             end
  98.         end
  99.     end,
  100. })
  101.  
  102. local MovementSection = MainTab:CreateSection("Movement")
  103.  
  104. local WalkSpeedSlider = MainTab:CreateSlider({
  105.     Name = "Walk Speed",
  106.     Range = {16, 200},
  107.     Increment = 1,
  108.     CurrentValue = 16,
  109.     Flag = "WalkSpeed",
  110.     Callback = function(Value)
  111.         Settings.WalkSpeed = Value
  112.         LocalPlayer.Character.Humanoid.WalkSpeed = Value
  113.     end,
  114. })
  115.  
  116. local JumpPowerSlider = MainTab:CreateSlider({
  117.     Name = "Jump Power",
  118.     Range = {50, 300},
  119.     Increment = 1,
  120.     CurrentValue = 50,
  121.     Flag = "JumpPower",
  122.     Callback = function(Value)
  123.         Settings.JumpPower = Value
  124.         LocalPlayer.Character.Humanoid.JumpPower = Value
  125.     end,
  126. })
  127.  
  128. -- Killing Tab
  129. local KillingTab = Window:CreateTab("⚔️ Killing", 4483362458)
  130.  
  131. local KillingSection = KillingTab:CreateSection("Player Targeting")
  132.  
  133. local TargetInput = KillingTab:CreateInput({
  134.     Name = "Target Username",
  135.     PlaceholderText = "Enter username",
  136.     RemoveTextAfterFocusLost = false,
  137.     Callback = function(Text)
  138.         Settings.TargetPlayer = Text
  139.     end,
  140. })
  141.  
  142. local AutoKillToggle = KillingTab:CreateToggle({
  143.     Name = "Auto Kill Target",
  144.     CurrentValue = false,
  145.     Flag = "AutoKill",
  146.     Callback = function(Value)
  147.         Settings.AutoKill = Value
  148.         while Settings.AutoKill do
  149.             wait(0.5)
  150.             local target = Players:FindFirstChild(Settings.TargetPlayer)
  151.             if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  152.                 -- Teleport and damage logic
  153.                 LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
  154.                 local args = {
  155.                     [1] = "Punch",
  156.                     [2] = target
  157.                 }
  158.                 game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  159.             end
  160.         end
  161.     end,
  162. })
  163.  
  164. local AutoKillAllToggle = KillingTab:CreateToggle({
  165.     Name = "Auto Kill Everyone",
  166.     CurrentValue = false,
  167.     Flag = "AutoKillAll",
  168.     Callback = function(Value)
  169.         Settings.AutoKillAll = Value
  170.         while Settings.AutoKillAll do
  171.             wait(0.5)
  172.             for _, player in pairs(Players:GetPlayers()) do
  173.                 if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  174.                     LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
  175.                     local args = {
  176.                         [1] = "Punch",
  177.                         [2] = player
  178.                     }
  179.                     game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  180.                     wait(0.1)
  181.                 end
  182.             end
  183.         end
  184.     end,
  185. })
  186.  
  187. local InstantKillButton = KillingTab:CreateButton({
  188.     Name = "Instant Kill Target",
  189.     Callback = function()
  190.         local target = Players:FindFirstChild(Settings.TargetPlayer)
  191.         if target and target.Character then
  192.             for i = 1, 50 do
  193.                 local args = {
  194.                     [1] = "Punch",
  195.                     [2] = target
  196.                 }
  197.                 game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  198.                 wait(0.01)
  199.             end
  200.         end
  201.     end,
  202. })
  203.  
  204. -- OP Tab
  205. local OPTab = Window:CreateTab("💪 OP Features", 4483362458)
  206.  
  207. local OPSection = OPTab:CreateSection("Advanced Grinding")
  208.  
  209. local FastRebirthToggle = OPTab:CreateToggle({
  210.     Name = "Fast Rebirth",
  211.     CurrentValue = false,
  212.     Flag = "FastRebirth",
  213.     Callback = function(Value)
  214.         Settings.FastRebirth = Value
  215.         while Settings.FastRebirth do
  216.             wait(1)
  217.             local args = {
  218.                 [1] = "Rebirth"
  219.             }
  220.             game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  221.         end
  222.     end,
  223. })
  224.  
  225. local FastGrindToggle = OPTab:CreateToggle({
  226.     Name = "Fast Grind",
  227.     CurrentValue = false,
  228.     Flag = "FastGrind",
  229.     Callback = function(Value)
  230.         Settings.FastGrind = Value
  231.         while Settings.FastGrind do
  232.             wait(0.05)
  233.             -- Fast grind all exercises
  234.             local exercises = {"BenchPress", "LiftWeight", "Squat", "Situp"}
  235.             for _, exercise in pairs(exercises) do
  236.                 local args = {
  237.                     [1] = exercise
  238.                 }
  239.                 game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  240.             end
  241.         end
  242.     end,
  243. })
  244.  
  245. local SpeedGrindToggle = OPTab:CreateToggle({
  246.     Name = "Speed Grind V2 (Ultra Fast)",
  247.     CurrentValue = false,
  248.     Flag = "SpeedGrind",
  249.     Callback = function(Value)
  250.         Settings.SpeedGrind = Value
  251.         spawn(function()
  252.             while Settings.SpeedGrind do
  253.                 wait()
  254.                 for i = 1, 10 do
  255.                     local args = {
  256.                         [1] = "BenchPress"
  257.                     }
  258.                     game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  259.                     local args2 = {
  260.                         [1] = "LiftWeight"
  261.                     }
  262.                     game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args2))
  263.                 end
  264.             end
  265.         end)
  266.     end,
  267. })
  268.  
  269. local FastStrengthToggle = OPTab:CreateToggle({
  270.     Name = "Fast Strength Gain",
  271.     CurrentValue = false,
  272.     Flag = "FastStrength",
  273.     Callback = function(Value)
  274.         Settings.FastStrength = Value
  275.         while Settings.FastStrength do
  276.             wait(0.01)
  277.             local args = {
  278.                 [1] = "GainStrength",
  279.                 [2] = 1000
  280.             }
  281.             game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  282.         end
  283.     end,
  284. })
  285.  
  286. local InstantMaxButton = OPTab:CreateButton({
  287.     Name = "Instant Max Stats (Risky)",
  288.     Callback = function()
  289.         for i = 1, 100 do
  290.             local args = {
  291.                 [1] = "GainStrength",
  292.                 [2] = 99999
  293.             }
  294.             game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  295.             wait(0.01)
  296.         end
  297.         Rayfield:Notify({
  298.             Title = "Stats Boosted",
  299.             Content = "Attempted to max stats!",
  300.             Duration = 3,
  301.             Image = 4483362458,
  302.         })
  303.     end,
  304. })
  305.  
  306. -- Pets Tab
  307. local PetsTab = Window:CreateTab("🐾 Pets", 4483362458)
  308.  
  309. local PetsSection = PetsTab:CreateSection("Pet Management")
  310.  
  311. local GiveAllPetsButton = PetsTab:CreateButton({
  312.     Name = "Give All Pets",
  313.     Callback = function()
  314.         local pets = {"Dragon", "Phoenix", "Unicorn", "Tiger", "Lion", "Wolf", "Bear", "Eagle"}
  315.         for _, pet in pairs(pets) do
  316.             local args = {
  317.                 [1] = "GivePet",
  318.                 [2] = pet
  319.             }
  320.             game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  321.             wait(0.1)
  322.         end
  323.         Rayfield:Notify({
  324.             Title = "Pets",
  325.             Content = "Attempted to give all pets!",
  326.             Duration = 3,
  327.             Image = 4483362458,
  328.         })
  329.     end,
  330. })
  331.  
  332. local MaxPetsButton = PetsTab:CreateButton({
  333.     Name = "Max All Pets Level",
  334.     Callback = function()
  335.         for _, pet in pairs(LocalPlayer.Pets:GetChildren()) do
  336.             local args = {
  337.                 [1] = "UpgradePet",
  338.                 [2] = pet.Name,
  339.                 [3] = 999
  340.             }
  341.             game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  342.         end
  343.         Rayfield:Notify({
  344.             Title = "Pets",
  345.             Content = "Attempted to max pet levels!",
  346.             Duration = 3,
  347.             Image = 4483362458,
  348.         })
  349.     end,
  350. })
  351.  
  352. local EquipAllPetsButton = PetsTab:CreateButton({
  353.     Name = "Equip All Pets",
  354.     Callback = function()
  355.         for _, pet in pairs(LocalPlayer.Pets:GetChildren()) do
  356.             local args = {
  357.                 [1] = "EquipPet",
  358.                 [2] = pet.Name
  359.             }
  360.             game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(args))
  361.             wait(0.05)
  362.         end
  363.     end,
  364. })
  365.  
  366. -- Maintain walk speed and jump power
  367. RunService.Heartbeat:Connect(function()
  368.     if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  369.         LocalPlayer.Character.Humanoid.WalkSpeed = Settings.WalkSpeed
  370.         LocalPlayer.Character.Humanoid.JumpPower = Settings.JumpPower
  371.     end
  372. end)
  373.  
  374. -- Character respawn handler
  375. LocalPlayer.CharacterAdded:Connect(function(char)
  376.     Character = char
  377.     Humanoid = char:WaitForChild("Humanoid")
  378.     wait(0.5)
  379.     Humanoid.WalkSpeed = Settings.WalkSpeed
  380.     Humanoid.JumpPower = Settings.JumpPower
  381. end)
  382.  
  383. Rayfield:Notify({
  384.     Title = "Script Loaded",
  385.     Content = "Muscle Legends script loaded successfully!",
  386.     Duration = 5,
  387.     Image = 4483362458,
  388. })
  389.  
  390. print("Muscle Legends Script Loaded!")
Advertisement
Add Comment
Please, Sign In to add comment