local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local UserInputService = game:GetService("UserInputService") local LocalPlayer = Players.LocalPlayer local knitServices = ReplicatedStorage.Packages._Index["sleitnick_knit@1.5.1"].knit.Services local RebirthService = knitServices and knitServices:FindFirstChild("RebirthService") local FightService = knitServices and knitServices:FindFirstChild("FightService") local RandomPotionService = knitServices and knitServices:FindFirstChild("RandomPotionService") local EggHatchService = knitServices and knitServices:FindFirstChild("EggHatchService") -- New Service -- Rebirth Remotes local SuperRebirthRF = RebirthService and RebirthService.RF.SuperRebirth local RebirthRF = RebirthService and RebirthService.RF.Rebirth local JoinContest = FightService and FightService.RE.JoinContest local GetWinsEvent = FightService and FightService.RE.GetWinsEvent local QuitContestEvent = FightService and FightService.RE.QuitContestEvent local BuyPotionEvent = RandomPotionService and RandomPotionService.RE.BuyPotionEvent -- Hatch Remote local HatchRE = EggHatchService and EggHatchService.RE.Hatch -- Toggles local AutoWinEnabled = false local AutoRebirthEnabled = false local AutoSuperRebirthEnabled = false local InfMoneyEnabled = false local AutoHatchEnabled = false -- NEW TOGGLE VARIABLE local HatchEggID = "Egg_1_4" -- Default Egg ID (Adjust in code if needed) local HatchCount = 1 -- Default Count -- GUI local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "Horse race" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") local MainFrame = Instance.new("Frame") -- Increased size to fit the new button MainFrame.Size = UDim2.new(0, 320, 0, 335) MainFrame.Position = UDim2.new(0.5, -160, 0.3, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0, 12) Corner.Parent = MainFrame local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 45) Title.BackgroundColor3 = Color3.fromRGB(0, 170, 255) Title.Text = "Horse race" Title.TextColor3 = Color3.new(1,1,1) Title.Font = Enum.Font.GothamBold Title.TextSize = 20 Title.Parent = MainFrame -- Toggle Button Function local function CreateToggle(name, yPos, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0.92, 0, 0, 45) btn.Position = UDim2.new(0.04, 0, 0, yPos) btn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) btn.Text = name .. ": OFF" btn.TextColor3 = Color3.new(1,1,1) btn.Font = Enum.Font.GothamBold btn.TextSize = 18 btn.Parent = MainFrame local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = btn local enabled = false btn.MouseButton1Click:Connect(function() enabled = not enabled btn.Text = name .. ": " .. (enabled and "ON" or "OFF") btn.BackgroundColor3 = enabled and Color3.fromRGB(50, 200, 50) or Color3.fromRGB(200, 50, 50) callback(enabled) end) return btn end -- Toggles CreateToggle("AUTO WIN CONTEST", 55, function(state) AutoWinEnabled = state end) CreateToggle("AUTO REBIRTH", 110, function(state) AutoRebirthEnabled = state end) CreateToggle("AUTO SUPER REBIRTH", 165, function(state) AutoSuperRebirthEnabled = state end) CreateToggle("INFINITE MONEY", 220, function(state) InfMoneyEnabled = state end) -- NEW HATCH TOGGLE CreateToggle("AUTO HATCH (No CD)", 275, function(state) AutoHatchEnabled = state end) -- Draggable Logic (Unchanged) local dragging, dragInput, dragStart, startPos Title.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) Title.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if dragging and input == dragInput then local delta = input.Position - dragStart MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) -- === AUTO HATCH LOOP (NEW) === task.spawn(function() while true do if AutoHatchEnabled then if HatchRE then pcall(function() -- Fires the remote at max speed (no cooldown) HatchRE:FireServer(HatchEggID, HatchCount) end) else warn("Hatch remote not available! Stopping Auto Hatch.") AutoHatchEnabled = false end end -- Keep the wait very low to bypass the cooldown task.wait(0.01) end end) -- Auto Win Loop task.spawn(function() while true do if AutoWinEnabled then local area = workspace.Areas:FindFirstChildWhichIsA("Model") if area and JoinContest and GetWinsEvent and QuitContestEvent then pcall(function() JoinContest:FireServer(area.Name) task.wait(0.3) for i, gate in ipairs(area.WinGates:GetChildren()) do local gatePart = gate:FindFirstChild("gate") if gatePart then GetWinsEvent:FireServer("WinGate_" .. tostring(i), gatePart.Position) end end QuitContestEvent:FireServer(area.Name) end) end end task.wait(0.6) end end) -- Auto Rebirth Loops task.spawn(function() while true do if AutoRebirthEnabled and RebirthRF then pcall(function() RebirthRF:InvokeServer() end) end task.wait(0.1) end end) task.spawn(function() while true do if AutoSuperRebirthEnabled and SuperRebirthRF then pcall(function() SuperRebirthRF:InvokeServer() end) end task.wait(0.1) end end) -- Infinite Money (One-Time Fire) task.spawn(function() while true do if InfMoneyEnabled and BuyPotionEvent then pcall(function() BuyPotionEvent:FireServer(table.unpack({[1] = -1e50, [2] = {}, [3] = true, [4] = "yippie!"})) end) end task.wait(2) end end)