-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))() local Players = game:GetService("Players") local player = Players.LocalPlayer local buttonsFolder = workspace.World.Features.Buttons -------------------------------------------------- -- RAYFIELD -------------------------------------------------- local Window = Rayfield:CreateWindow({ Name = "Auto Buttons", Icon = "zap", LoadingTitle = "Auto Buttons", LoadingSubtitle = "Fruit Button Automation", ShowText = "Auto Buttons", Theme = "Default", ToggleUIKeybind = "K", DisableRayfieldPrompts = true, DisableBuildWarnings = true, ConfigurationSaving = { Enabled = false } }) -------------------------------------------------- -- BUTTON DATA -------------------------------------------------- local categories = { Orange = {}, Banana = {}, Cucumber = {}, Blueberry = {} } for category, buttonList in pairs(categories) do for i = 1, 6 do local button = buttonsFolder:FindFirstChild(category .. i) if button then local touchPart = button:FindFirstChild("TouchPart", true) if touchPart and touchPart:IsA("BasePart") then buttonList[i] = touchPart elseif button:IsA("BasePart") then buttonList[i] = button end end end end -------------------------------------------------- -- STATES -------------------------------------------------- local enabled = { Orange = {}, Banana = {}, Cucumber = {}, Blueberry = {} } for category, _ in pairs(categories) do for i = 1, 6 do enabled[category][i] = false end end local running = true -------------------------------------------------- -- TOUCH FUNCTION -------------------------------------------------- local function touchButton(target) if not target then return end local character = player.Character if not character then return end local parts = { character:FindFirstChild("LeftFoot"), character:FindFirstChild("RightFoot"), character:FindFirstChild("Left Leg"), character:FindFirstChild("Right Leg"), character:FindFirstChild("HumanoidRootPart") } for _, part in ipairs(parts) do if part then pcall(function() firetouchinterest(part, target, 0) end) task.wait(0.01) pcall(function() firetouchinterest(part, target, 1) end) end end end -------------------------------------------------- -- CREATE TABS -------------------------------------------------- local tabs = {} for category, _ in pairs(categories) do tabs[category] = Window:CreateTab( category, "apple" ) local categoryName = category local tab = tabs[category] -------------------------------------------------- -- MASTER TOGGLE -------------------------------------------------- tab:CreateToggle({ Name = categoryName .. " 1-6", CurrentValue = false, Flag = categoryName .. "_All", Callback = function(value) for i = 1, 6 do enabled[categoryName][i] = value end end }) tab:CreateDivider() -------------------------------------------------- -- INDIVIDUAL BUTTONS -------------------------------------------------- for i = 1, 6 do local number = i tab:CreateToggle({ Name = categoryName .. " " .. number, CurrentValue = false, Flag = categoryName .. "_" .. number, Callback = function(value) enabled[categoryName][number] = value end }) end end -------------------------------------------------- -- CONTROL TAB -------------------------------------------------- local ControlTab = Window:CreateTab( "Controls", "settings" ) ControlTab:CreateSection("Automation") ControlTab:CreateToggle({ Name = "Automation Enabled", CurrentValue = true, Flag = "AutomationEnabled", Callback = function(value) running = value end }) ControlTab:CreateButton({ Name = "Stop All", Callback = function() for category, _ in pairs(categories) do for i = 1, 6 do enabled[category][i] = false end end Rayfield:Notify({ Title = "Auto Buttons", Content = "All buttons have been disabled.", Duration = 3 }) end }) ControlTab:CreateButton({ Name = "Destroy GUI", Callback = function() running = false for category, _ in pairs(categories) do for i = 1, 6 do enabled[category][i] = false end end Rayfield:Destroy() end }) -------------------------------------------------- -- AUTOMATION LOOP -------------------------------------------------- task.spawn(function() while running do task.wait(0.1) for category, buttonList in pairs(categories) do for i = 1, 6 do if enabled[category][i] and buttonList[i] then touchButton(buttonList[i]) end end end end end)