--// Rayfield local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Auto Chicken Farm", LoadingTitle = "This is a terrible game", LoadingSubtitle = "Credits to Cobalt & Claude", ConfigurationSaving = { Enabled = false }, KeySystem = false, }) local MainTab = Window:CreateTab("Main", 4483362458) --// Services local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer --// Remotes local RemoteFunc = ReplicatedStorage.Paper.Remotes:WaitForChild("__remotefunction") local RemoteEvent = ReplicatedStorage.Paper.Remotes:WaitForChild("__remoteevent") --// State local AutoMerge = false local AutoCollectCash = false local AutoDepositEggs = false local AutoBuyChickens = false local AutoCollectEggs = false local AutoUpgradeProcess = false local BuyQuantity = 1 --// Auto Merge loop task.spawn(function() while true do task.wait(1) if AutoMerge then RemoteFunc:InvokeServer("Merge Chickens") end end end) --// Auto Collect Cash loop task.spawn(function() while true do task.wait(2) if AutoCollectCash then RemoteFunc:InvokeServer("Collect Cash") end end end) --// Auto Deposit Eggs loop task.spawn(function() while true do task.wait(2) if AutoDepositEggs then RemoteFunc:InvokeServer("Deposit Eggs") end end end) --// Auto Buy Chickens loop task.spawn(function() while true do task.wait(1) if AutoBuyChickens then RemoteFunc:InvokeServer("Buy Chickens", BuyQuantity) end end end) --// Auto Upgrade Process Level loop task.spawn(function() while true do task.wait(1) if AutoUpgradeProcess then RemoteFunc:InvokeServer("Upgrade Process Level") end end end) --// Auto Collect Eggs - hook ChildAdded on workspace.Eggs workspace.Eggs.ChildAdded:Connect(function(c) if not AutoCollectEggs then return end task.wait(1) RemoteEvent:FireServer("Collect Egg", c.Name) task.wait() c:Destroy() if AutoDepositEggs then RemoteFunc:InvokeServer("Deposit Eggs") end if AutoCollectCash then RemoteFunc:InvokeServer("Collect Cash") end if AutoMerge then RemoteFunc:InvokeServer("Merge Chickens") end if AutoBuyChickens then RemoteFunc:InvokeServer("Buy Chickens", BuyQuantity) end if AutoUpgradeProcess then RemoteFunc:InvokeServer("Upgrade Process Level") end end) --// UI MainTab:CreateToggle({ Name = "Auto Merge Chickens", CurrentValue = false, Callback = function(v) AutoMerge = v Rayfield:Notify({ Title = "Auto Merge", Content = v and "Enabled" or "Disabled", Duration = 3 }) end, }) MainTab:CreateToggle({ Name = "Auto Collect Cash", CurrentValue = false, Callback = function(v) AutoCollectCash = v Rayfield:Notify({ Title = "Auto Collect Cash", Content = v and "Enabled" or "Disabled", Duration = 3 }) end, }) MainTab:CreateToggle({ Name = "Auto Deposit Eggs", CurrentValue = false, Callback = function(v) AutoDepositEggs = v Rayfield:Notify({ Title = "Auto Deposit Eggs", Content = v and "Enabled" or "Disabled", Duration = 3 }) end, }) MainTab:CreateToggle({ Name = "Auto Collect Eggs", CurrentValue = false, Callback = function(v) AutoCollectEggs = v Rayfield:Notify({ Title = "Auto Collect Eggs", Content = v and "Enabled" or "Disabled", Duration = 3 }) end, }) MainTab:CreateToggle({ Name = "Auto Buy Chickens", CurrentValue = false, Callback = function(v) AutoBuyChickens = v Rayfield:Notify({ Title = "Auto Buy Chickens", Content = v and "Enabled" or "Disabled", Duration = 3 }) end, }) MainTab:CreateToggle({ Name = "Auto Upgrade Process Level", CurrentValue = false, Callback = function(v) AutoUpgradeProcess = v Rayfield:Notify({ Title = "Auto Upgrade Process", Content = v and "Enabled" or "Disabled", Duration = 3 }) end, }) MainTab:CreateInput({ Name = "Buy Quantity", PlaceholderText = "How many to buy per call (e.g. 1)", RemoveTextAfterFocusLost = false, Callback = function(text) local n = tonumber(text) if n and n >= 1 then BuyQuantity = math.floor(n) Rayfield:Notify({ Title = "Buy Quantity", Content = "Set to " .. BuyQuantity, Duration = 3 }) end end, }) MainTab:CreateButton({ Name = "Destroy GUI", Callback = function() Rayfield:Destroy() end, }) Rayfield:Notify({ Title = "Loaded", Content = "Auto Chicken Farm", Duration = 4, })