local Rayfield = loadstring(game:HttpGet("https://sirius.menu/gen2"))() local window = Rayfield:CreateWindow({ name = "Gym Legends Script", -- had no ideas what to name it subtitle = "Made With Rayfield Gen2", sidebarLayout = true, theme = "cobalt", }) local tab = window:CreateTab({ name = "Main", icon = 93364949241311 }) -- Important Variables to make the script function local Event = game:GetService("Players").LocalPlayer.muscleEvent local ocr = game:GetService("ReplicatedStorage").rEvents.openCrystalRemote local sas = game:GetService("ReplicatedStorage").rEvents.changeSpeedSizeRemote local reb = game:GetService("ReplicatedStorage").rEvents.rebirthRemote local v = false local v1 = false local SelectedC = "Blue Crystal" local v2 = false -- Paths local rt = game:GetService("Players").LocalPlayer.RebirthTokens local t = game:GetService("Players").LocalPlayer.Tokens local g = game:GetService("Players").LocalPlayer.Gems local dur = game:GetService("Players").LocalPlayer.Durability local ag = game:GetService("Players").LocalPlayer.Agility local autor = game:GetService("Players").LocalPlayer.autoRebirthEnabled local mon = game:GetService("Players").LocalPlayer.musicOn local tron = game:GetService("Players").LocalPlayer.tradingOn local rep = tab:CreateToggle({ name = "Auto Rep (Doesn't Work On Machines)", flag = "AutoRep", value = false, callback = function(vl) v = vl if v then task.spawn(function() while v do Event:FireServer("rep") task.wait(0.07) end end) else v = false end end, }) local punch = tab:CreateToggle({ name = "Auto Punch", flag = "AutoPunch", value = false, callback = function(value) v1 = value if v1 then task.spawn(function() while v1 do Event:FireServer("punch", "leftHand") task.wait(0.07) Event:FireServer("punch", "rightHand") task.wait(0.07) end end) end end, }) local AutoRebirth = tab:CreateToggle({ name = "Auto Rebirth", flag = "AutoRebirth", value = false, callback = function(value) if value == true then autor.Value = true else autor.Value = false end end, }) tab:CreateButton({ name = "Rebirth", callback = function() reb:InvokeServer("rebirthRequest") end, }) local ptab = window:CreateTab({ name = "Pets", icon = 93364949241311 }) ptab:CreateDropdown({ name = "Select Crystals", multiSelect = false, options = { "Blue Crystal", "Battle Legends Crystal", "Dark Nebula Crystal", "Frost Crystal", "Galaxy Oracle Crystal", "Green Crystal", "Inferno Crystal", "Legends Crystal", "Muscle Elite Crystal", "Mythical Crystal", "Ultra Shockwave Crystal" }, value = { "Blue Crystal" }, callback = function(selected) SelectedC = selected end, }) ptab:CreateInput({ name = "Open Crystal By Number", numeric = true, value = "0", placeholder = "Enter a number", callback = function(num) for i = 1, num do ocr:InvokeServer("openCrystal", SelectedC) end end, }) ptab:CreateButton({ name = "Open Crystal", callback = function() ocr:InvokeServer("openCrystal", SelectedC) end, }) ptab:CreateToggle({ name = "Auto Open Crystal", flag = "AutoOpenCrystal", value = false, callback = function(value) v2 = value if v2 then task.spawn(function() while v2 do ocr:InvokeServer("openCrystal", SelectedC) task.wait(0.1) end end) end end, }) local misc = window:CreateTab({ name = "Misc", icon = 93364949241311 }) misc:CreateInput({ name = "Enter Agility Amount", numeric = true, value = "0", placeholder = "Enter a number", callback = function(text) ag.Value = text end, }) misc:CreateInput({ name = "Enter Durability Amount", numeric = true, value = "0", placeholder = "Enter a number", callback = function(text) dur.Value = text end, }) misc:CreateInput({ name = "Enter Token Amount", numeric = true, value = "0", placeholder = "Enter a number", callback = function(text) t.Value = text end, }) misc:CreateInput({ name = "Enter Gems Amount", numeric = true, value = "0", placeholder = "Enter a number", callback = function(text) g.Value = text end, }) misc:CreateInput({ name = "Enter Rebirth Token Amount", numeric = true, value = "0", placeholder = "Enter a number", callback = function(text) rt.Value = text end, }) misc:CreateText({ name = "Size and Speed", text = "Size and Speed Changing", }) misc:CreateInput({ name = "Enter Size", numeric = true, value = "0", placeholder = "Enter a number", callback = function(num) sas:InvokeServer("changeSize", tonumber(num)) end, }) misc:CreateInput({ name = "Enter Speed", numeric = true, value = "0", placeholder = "Enter a number", callback = function(num) sas:InvokeServer("changeSpeed", tonumber(num)) end, }) misc:CreateText({ name = "Music And Trading", text = "Music and Trade Related Things", }) local tradeon = misc:CreateToggle({ name = "Trade On/Off", flag = "AutoOnAOff", value = false, callback = function(value) if value == true then tron.Value = false else tron.Value = true end end, }) misc:CreateButton({ name = "Change Music", callback = function() local musicFolder = workspace:WaitForChild("musicFolder") local v1 local currentMap = game.Players.LocalPlayer:WaitForChild("currentMap") local u4 local function u4_2(v2) local v3 = musicFolder:FindFirstChild(v2) if v3 ~= nil then local v4 = v3:GetChildren()[math.random(1, #v3:GetChildren())] if v4 ~= nil then for v5, v6 in pairs(musicFolder:GetDescendants()) do if v6 ~= nil and v6:IsA("Sound") then v6:Pause() end end if v1 ~= nil then v1:Disconnect() end local v7 if v4.Parent == nil then v7 = true elseif v4.Parent.Name == "Boxing Ring" or v4.Parent.Name == "Desert Ring" then v7 = false else v7 = v4.Parent.Name ~= "Magma Ring" end if v7 == true then v4:Resume() else v4:Play() end v1 = v4.Ended:Connect(function() v1:Disconnect() u4(currentMap.Value) end) end end end u4 = u4_2 u4_2(currentMap.Value) currentMap.Changed:Connect(function() u4_2(currentMap.Value) end) end, })