Advertisements
Test
- 1
- view
- 1
- run
Script
Version history
Loading…
loadstring(game:HttpGet("https://script.roscripts.io/M5zPpGF"))() -- 1. Safely load the Rayfield Gen2 Library local Rayfield local success, err = pcall(function() local response = game:HttpGet("https://sirius.menu/gen2") Rayfield = loadstring(response)() end) if not success or not Rayfield then warn("CRITICAL UI ERROR: Failed to load Rayfield.") return end -- 2. Create the Main Hub Window local HubWindow = Rayfield:CreateWindow({ name = "My Cool Script Hub", subtitle = "The Ultimate Project", sidebarLayout = true, }) -- 3. GLOBAL VARIABLES getgenv().AutoSwing = false getgenv().AutoSell = false getgenv().AutoPets = false getgenv().AutoBuyWeapons = false getgenv().AutoBuyDNAs = falsegetgenv().AntiAfk = false getgenv().SwingCPS = 10 -- Default CPS -- ========================================== -- UNIVERSAL TAB (Works in every game) -- ========================================== local universalTab = HubWindow:CreateTab({ name = "Universal" }) universalTab:CreateSlider({ name = "WalkSpeed", range = {16, 100}, increment = 1, suffix = "Speed", currentValue = 16, callback = function(value) if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value end end, }) universalTab:CreateToggle({ name = "Anti-AFK", callback = function(state) getgenv().AntiAfk = state if state then task.spawn(function() while getgenv().AntiAfk do local VirtualUser = game:GetService("VirtualUser") VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) task.wait(60) end end) end end, }) -- ========================================== -- SABER SIMULATOR TAB -- ========================================== local successName, gameName = pcall(function() return game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name end) local isSaberGame = false if successName and gameName and string.find(string.lower(gameName), "saber") then isSaberGame = true elseif string.find(string.lower(game.Name), "saber") then isSaberGame = true end if isSaberGame then local saberTab = HubWindow:CreateTab({ name = "Saber Simulator" }) -- NEW: CPS Slider saberTab:CreateSlider({ name = "Swings Per Second (CPS)", range = {10, 1000}, increment = 10, suffix = " CPS", currentValue = 10, callback = function(value) getgenv().SwingCPS = value end, }) -- Auto Swing Logic using the Slider local function autoSwingSaber() while getgenv().AutoSwing do pcall(function() game:GetService("ReplicatedStorage").Events.SwingSaber:FireServer() end) -- Calculate the delay based on CPS (1 / CPS) local delayTime = 1 / getgenv().SwingCPS -- Wait the calculated time task.wait(delayTime) end end saberTab:CreateToggle({ name = "Auto Swing", callback = function(value) getgenv().AutoSwing = value if value then autoSwingSaber() end end, }) -- Auto Sell saberTab:CreateToggle({ name = "Auto Sell", callback = function(value) getgenv().AutoSell = value if value then task.spawn(function() while getgenv().AutoSell do pcall(function() game:GetService("ReplicatedStorage").Events.SellStrength:FireServer() end) task.wait(0.5) end end) end end, }) -- Auto Equip Best Pets saberTab:CreateToggle({ name = "Auto Equip Best Pets", callback = function(value) getgenv().AutoPets = value if value then
The rest is in View source.
Comments · 0
Sign in to comment.
No comments yet.