repeat task.wait() until game:IsLoaded() local Players = game:GetService("Players") local Plr = Players.LocalPlayer local Char = Plr.Character or Plr.CharacterAdded:Wait() local Hum = Char:WaitForChild("Humanoid") local Hrp = Char:WaitForChild("HumanoidRootPart") local function AttemptUpgrade() local args = { "Hive", workspace:WaitForChild("Plots"):WaitForChild("Plot3"):WaitForChild("HiveSign") } game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("RequestUpgrade"):FireServer(unpack(args)) end local function GetPlot() for _, v in pairs(workspace.Plots:GetChildren()) do local owner = v:GetAttribute("Owner") if owner and owner == Plr.UserId then return v end end end local UserPlot = GetPlot() local BeeButton = UserPlot:FindFirstChild("BeeButton") local function SpawnBee() local ClickDe = BeeButton:FindFirstChild("ButtonPart"):FindFirstChild("ClickDetector") fireclickdetector(ClickDe) end getgenv().Settings = { AutoSpawnBee = true } while getgenv().Settings.AutoSpawnBee do local startTime = tick() while tick() - startTime < 10 and getgenv().Settings.AutoSpawnBee do task.wait() SpawnBee() end task.wait(5) end