Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Grow A Garden Script by JayRBLX Scripts
- -- Fully functional automation and optimization features
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "Grow A Garden | JayRBLX Scripts",
- LoadingTitle = "Loading Grow A Garden Script",
- LoadingSubtitle = "by JayRBLX Scripts",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = nil,
- FileName = "GrowAGarden_Config"
- },
- Discord = {
- Enabled = false,
- Invite = "noinvitelink",
- RememberJoins = true
- },
- KeySystem = false
- })
- -- Services
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local RunService = game:GetService("RunService")
- local Workspace = game:GetService("Workspace")
- local Player = Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:Wait()
- local Humanoid = Character:WaitForChild("Humanoid")
- local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- -- Get game remotes
- local Remotes = ReplicatedStorage:WaitForChild("Remotes")
- -- Script Variables
- local ScriptSettings = {
- AutoOptimizePlants = false,
- AutoRemoveOtherPets = false,
- RemoveOtherFarms = false,
- AutoBuySeeds = false,
- SelectedPlant = "Carrot",
- AutoCollectGroundSeeds = false,
- AutoPlantSeeds = false,
- AutoHarvestPlants = false,
- AutoBuyGears = false,
- SelectedGear = "Watering Can",
- AutoUseWateringCan = false,
- AutoUseSprinklers = false,
- SelectedSprinkler = "Basic Sprinkler",
- AutoPlantEggs = false,
- AutoHatchEggs = false,
- AutoBuyEggs = false,
- SelectedEgg = "Basic Egg",
- AutoFeedPets = false,
- SelectedPetFood = "Carrot",
- AutoPutPetsInGarden = false,
- AutoSellPets = false,
- WalkSpeed = 16,
- JumpPower = 50,
- NoClip = false,
- WhiteScreen = false
- }
- -- Plant List (All 30 plants in Grow A Garden)
- local PlantList = {
- "Carrot",
- "Strawberry",
- "Blueberry",
- "Buttercup",
- "Tomato",
- "Corn",
- "Daffodil",
- "Watermelon",
- "Pumpkin",
- "Apple",
- "Bamboo",
- "Coconut",
- "Cactus",
- "Dragon Fruit",
- "Mango",
- "Grape",
- "Mushroom",
- "Pepper",
- "Cacao",
- "Sunflower",
- "Beanstalk",
- "Ember Lily",
- "Sugar Apple",
- "Burning Bud",
- "Giant Pinecone",
- "Elder Strawberry",
- "Romanesco",
- "Crimson Thorn",
- "Zebrazinkle",
- "Octobloom"
- }
- -- Gear List
- local GearList = {
- "Watering Can",
- "Basic Watering Can",
- "Advanced Watering Can",
- "Golden Watering Can",
- "Shovel",
- "Hoe",
- "Fertilizer"
- }
- -- Sprinkler List
- local SprinklerList = {
- "Basic Sprinkler",
- "Advanced Sprinkler",
- "Golden Sprinkler",
- "Rainbow Sprinkler",
- "Legendary Sprinkler"
- }
- -- Egg List
- local EggList = {
- "Basic Egg",
- "Common Egg",
- "Uncommon Egg",
- "Rare Egg",
- "Epic Egg",
- "Legendary Egg",
- "Mythical Egg",
- "Dragon Egg",
- "Phoenix Egg",
- "Galaxy Egg"
- }
- local Stats = {
- GardenValue = 0,
- BackpackValue = 0,
- InHandValue = 0
- }
- -- Helper Functions
- local function GetPlayerGarden()
- local gardens = Workspace:FindFirstChild("Gardens")
- if gardens then
- return gardens:FindFirstChild(Player.Name)
- end
- return nil
- end
- local function GetPlots()
- local garden = GetPlayerGarden()
- if garden then
- local plots = garden:FindFirstChild("Plots")
- if plots then
- return plots:GetChildren()
- end
- end
- return {}
- end
- local function GetEmptyPlot()
- for _, plot in pairs(GetPlots()) do
- if plot:FindFirstChild("Plant") == nil or plot.Plant.Value == nil then
- return plot
- end
- end
- return nil
- end
- local function GetReadyPlants()
- local readyPlants = {}
- for _, plot in pairs(GetPlots()) do
- if plot:FindFirstChild("Plant") and plot.Plant.Value then
- local plant = plot.Plant.Value
- if plant:FindFirstChild("Stage") and plant.Stage.Value >= plant:FindFirstChild("MaxStage").Value then
- table.insert(readyPlants, plot)
- end
- end
- end
- return readyPlants
- end
- local function UpdateStats()
- -- Calculate garden value
- local gardenValue = 0
- for _, plot in pairs(GetPlots()) do
- if plot:FindFirstChild("Plant") and plot.Plant.Value then
- local plant = plot.Plant.Value
- if plant:FindFirstChild("Value") then
- gardenValue = gardenValue + plant.Value.Value
- end
- end
- end
- Stats.GardenValue = gardenValue
- -- Calculate backpack value
- local backpackValue = 0
- local backpack = Player:FindFirstChild("Backpack")
- if backpack then
- for _, item in pairs(backpack:GetChildren()) do
- if item:FindFirstChild("Value") then
- backpackValue = backpackValue + item.Value.Value
- end
- end
- end
- Stats.BackpackValue = backpackValue
- -- Calculate in-hand value
- local inHandValue = 0
- if Character:FindFirstChildOfClass("Tool") then
- local tool = Character:FindFirstChildOfClass("Tool")
- if tool:FindFirstChild("Value") then
- inHandValue = tool.Value.Value
- end
- end
- Stats.InHandValue = inHandValue
- end
- -- Home Tab
- local HomeTab = Window:CreateTab("๐ Home", nil)
- HomeTab:CreateSection("Welcome!")
- HomeTab:CreateParagraph({
- Title = "Welcome to Grow A Garden Script!",
- Content = "This script provides comprehensive automation for Grow A Garden. Navigate through the tabs to enable different features. Made by JayRBLX Scripts."
- })
- HomeTab:CreateParagraph({
- Title = "Plant Information",
- Content = "This script supports all 30 plants in the game: From basic crops like Carrot and Strawberry to rare plants like Octobloom and Zebrazinkle. Select your desired plant in the Garden tab!"
- })
- HomeTab:CreateParagraph({
- Title = "How to Use",
- Content = "1. Select your plants, gears, eggs, and sprinklers from dropdowns. 2. Toggle automation features on/off. 3. Monitor your stats in the Main tab. 4. Adjust player settings as needed. Enjoy!"
- })
- -- Main Tab
- local MainTab = Window:CreateTab("โญ Main", nil)
- MainTab:CreateSection("Optimization")
- MainTab:CreateToggle({
- Name = "Auto Optimize Plants",
- CurrentValue = false,
- Flag = "AutoOptimizePlants",
- Callback = function(Value)
- ScriptSettings.AutoOptimizePlants = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoOptimizePlants do
- wait(1)
- -- Auto water plants that need water
- for _, plot in pairs(GetPlots()) do
- if plot:FindFirstChild("Plant") and plot.Plant.Value then
- local plant = plot.Plant.Value
- if plant:FindFirstChild("NeedsWater") and plant.NeedsWater.Value then
- local args = {plot}
- Remotes:FindFirstChild("WaterPlant"):FireServer(unpack(args))
- end
- end
- end
- end
- end)
- end
- end,
- })
- MainTab:CreateToggle({
- Name = "Auto Remove Other Pets",
- CurrentValue = false,
- Flag = "AutoRemoveOtherPets",
- Callback = function(Value)
- ScriptSettings.AutoRemoveOtherPets = Value
- if Value then
- local pets = Workspace:FindFirstChild("Pets")
- if pets then
- for _, pet in pairs(pets:GetChildren()) do
- if pet:FindFirstChild("Owner") and pet.Owner.Value ~= Player then
- pet:Destroy()
- end
- end
- end
- end
- end,
- })
- MainTab:CreateButton({
- Name = "Remove Other Farms",
- Callback = function()
- local gardens = Workspace:FindFirstChild("Gardens")
- if gardens then
- for _, garden in pairs(gardens:GetChildren()) do
- if garden.Name ~= Player.Name then
- garden.Parent = nil
- end
- end
- end
- Rayfield:Notify({
- Title = "Farms Removed",
- Content = "Other farms have been hidden from view",
- Duration = 3,
- Image = 4483362458,
- })
- end,
- })
- MainTab:CreateSection("Statistics")
- local GardenValueLabel = MainTab:CreateLabel("Garden Value: $" .. Stats.GardenValue)
- local BackpackValueLabel = MainTab:CreateLabel("Backpack Value: $" .. Stats.BackpackValue)
- local InHandValueLabel = MainTab:CreateLabel("In-Hand Item Value: $" .. Stats.InHandValue)
- MainTab:CreateButton({
- Name = "Refresh Stats",
- Callback = function()
- UpdateStats()
- Rayfield:Notify({
- Title = "Stats Refreshed",
- Content = "All statistics updated",
- Duration = 2,
- Image = 4483362458,
- })
- end,
- })
- -- Garden Tab
- local GardenTab = Window:CreateTab("๐ฑ Garden", nil)
- GardenTab:CreateSection("Garden Automation")
- GardenTab:CreateDropdown({
- Name = "Select Plant Type",
- Options = PlantList,
- CurrentOption = "Carrot",
- Flag = "SelectedPlant",
- Callback = function(Option)
- ScriptSettings.SelectedPlant = Option
- Rayfield:Notify({
- Title = "Plant Selected",
- Content = "Now using: " .. Option,
- Duration = 2,
- Image = 4483362458,
- })
- end,
- })
- GardenTab:CreateToggle({
- Name = "Auto Buy Seeds",
- CurrentValue = false,
- Flag = "AutoBuySeeds",
- Callback = function(Value)
- ScriptSettings.AutoBuySeeds = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoBuySeeds do
- wait(0.5)
- local args = {
- [1] = ScriptSettings.SelectedPlant,
- [2] = 1
- }
- Remotes:FindFirstChild("BuySeeds"):FireServer(unpack(args))
- end
- end)
- end
- end,
- })
- GardenTab:CreateToggle({
- Name = "Auto Collect Ground Seeds",
- CurrentValue = false,
- Flag = "AutoCollectGroundSeeds",
- Callback = function(Value)
- ScriptSettings.AutoCollectGroundSeeds = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoCollectGroundSeeds do
- wait(0.3)
- local seeds = Workspace:FindFirstChild("Seeds")
- if seeds then
- for _, seed in pairs(seeds:GetChildren()) do
- if seed:IsA("Model") or seed:IsA("Part") then
- local args = {seed}
- Remotes:FindFirstChild("CollectSeed"):FireServer(unpack(args))
- end
- end
- end
- end
- end)
- end
- end,
- })
- GardenTab:CreateToggle({
- Name = "Auto Plant Seeds",
- CurrentValue = false,
- Flag = "AutoPlantSeeds",
- Callback = function(Value)
- ScriptSettings.AutoPlantSeeds = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoPlantSeeds do
- wait(0.5)
- local emptyPlot = GetEmptyPlot()
- if emptyPlot then
- local args = {
- [1] = ScriptSettings.SelectedPlant,
- [2] = emptyPlot
- }
- Remotes:FindFirstChild("PlantSeed"):FireServer(unpack(args))
- end
- end
- end)
- end
- end,
- })
- GardenTab:CreateToggle({
- Name = "Auto Harvest Plants",
- CurrentValue = false,
- Flag = "AutoHarvestPlants",
- Callback = function(Value)
- ScriptSettings.AutoHarvestPlants = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoHarvestPlants do
- wait(0.5)
- local readyPlants = GetReadyPlants()
- for _, plot in pairs(readyPlants) do
- local args = {plot}
- Remotes:FindFirstChild("HarvestPlant"):FireServer(unpack(args))
- wait(0.1)
- end
- end
- end)
- end
- end,
- })
- GardenTab:CreateButton({
- Name = "Plant All Seeds in Inventory",
- Callback = function()
- for _, plot in pairs(GetPlots()) do
- if plot:FindFirstChild("Plant") == nil or plot.Plant.Value == nil then
- local args = {
- [1] = ScriptSettings.SelectedPlant,
- [2] = plot
- }
- Remotes:FindFirstChild("PlantSeed"):FireServer(unpack(args))
- wait(0.1)
- end
- end
- Rayfield:Notify({
- Title = "Planting Complete",
- Content = "All available plots planted",
- Duration = 3,
- Image = 4483362458,
- })
- end,
- })
- GardenTab:CreateButton({
- Name = "Harvest All Plants",
- Callback = function()
- local readyPlants = GetReadyPlants()
- for _, plot in pairs(readyPlants) do
- local args = {plot}
- Remotes:FindFirstChild("HarvestPlant"):FireServer(unpack(args))
- wait(0.1)
- end
- Rayfield:Notify({
- Title = "Harvesting Complete",
- Content = "All ready plants harvested",
- Duration = 3,
- Image = 4483362458,
- })
- end,
- })
- -- Gears Tab
- local GearsTab = Window:CreateTab("โ๏ธ Gears", nil)
- GearsTab:CreateSection("Gear Automation")
- GearsTab:CreateDropdown({
- Name = "Select Gear Type",
- Options = GearList,
- CurrentOption = "Watering Can",
- Flag = "SelectedGear",
- Callback = function(Option)
- ScriptSettings.SelectedGear = Option
- Rayfield:Notify({
- Title = "Gear Selected",
- Content = "Now using: " .. Option,
- Duration = 2,
- Image = 4483362458,
- })
- end,
- })
- GearsTab:CreateToggle({
- Name = "Auto Buy Gears",
- CurrentValue = false,
- Flag = "AutoBuyGears",
- Callback = function(Value)
- ScriptSettings.AutoBuyGears = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoBuyGears do
- wait(1)
- local args = {
- [1] = ScriptSettings.SelectedGear,
- [2] = 1
- }
- Remotes:FindFirstChild("BuyGear"):FireServer(unpack(args))
- end
- end)
- end
- end,
- })
- GearsTab:CreateToggle({
- Name = "Auto Use Watering Can",
- CurrentValue = false,
- Flag = "AutoUseWateringCan",
- Callback = function(Value)
- ScriptSettings.AutoUseWateringCan = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoUseWateringCan do
- wait(0.5)
- for _, plot in pairs(GetPlots()) do
- if plot:FindFirstChild("Plant") and plot.Plant.Value then
- local plant = plot.Plant.Value
- if plant:FindFirstChild("NeedsWater") and plant.NeedsWater.Value then
- local args = {plot}
- Remotes:FindFirstChild("WaterPlant"):FireServer(unpack(args))
- end
- end
- end
- end
- end)
- end
- end,
- })
- GearsTab:CreateSection("Sprinkler Automation")
- GearsTab:CreateDropdown({
- Name = "Select Sprinkler Type",
- Options = SprinklerList,
- CurrentOption = "Basic Sprinkler",
- Flag = "SelectedSprinkler",
- Callback = function(Option)
- ScriptSettings.SelectedSprinkler = Option
- Rayfield:Notify({
- Title = "Sprinkler Selected",
- Content = "Now using: " .. Option,
- Duration = 2,
- Image = 4483362458,
- })
- end,
- })
- GearsTab:CreateToggle({
- Name = "Auto Use Sprinklers",
- CurrentValue = false,
- Flag = "AutoUseSprinklers",
- Callback = function(Value)
- ScriptSettings.AutoUseSprinklers = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoUseSprinklers do
- wait(2)
- local args = {
- [1] = ScriptSettings.SelectedSprinkler,
- [2] = GetPlayerGarden()
- }
- Remotes:FindFirstChild("UseSprinkler"):FireServer(unpack(args))
- end
- end)
- end
- end,
- })
- -- Eggs Tab
- local EggsTab = Window:CreateTab("๐ฅ Eggs", nil)
- EggsTab:CreateSection("Egg Automation")
- EggsTab:CreateDropdown({
- Name = "Select Egg Type",
- Options = EggList,
- CurrentOption = "Basic Egg",
- Flag = "SelectedEgg",
- Callback = function(Option)
- ScriptSettings.SelectedEgg = Option
- Rayfield:Notify({
- Title = "Egg Selected",
- Content = "Now using: " .. Option,
- Duration = 2,
- Image = 4483362458,
- })
- end,
- })
- EggsTab:CreateToggle({
- Name = "Auto Buy Eggs",
- CurrentValue = false,
- Flag = "AutoBuyEggs",
- Callback = function(Value)
- ScriptSettings.AutoBuyEggs = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoBuyEggs do
- wait(1)
- local args = {
- [1] = ScriptSettings.SelectedEgg,
- [2] = 1
- }
- Remotes:FindFirstChild("BuyEgg"):FireServer(unpack(args))
- end
- end)
- end
- end,
- })
- EggsTab:CreateToggle({
- Name = "Auto Plant Eggs",
- CurrentValue = false,
- Flag = "AutoPlantEggs",
- Callback = function(Value)
- ScriptSettings.AutoPlantEggs = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoPlantEggs do
- wait(0.5)
- local args = {
- [1] = ScriptSettings.SelectedEgg,
- [2] = GetPlayerGarden()
- }
- Remotes:FindFirstChild("PlantEgg"):FireServer(unpack(args))
- end
- end)
- end
- end,
- })
- EggsTab:CreateToggle({
- Name = "Auto Hatch Eggs",
- CurrentValue = false,
- Flag = "AutoHatchEggs",
- Callback = function(Value)
- ScriptSettings.AutoHatchEggs = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoHatchEggs do
- wait(0.5)
- local garden = GetPlayerGarden()
- if garden then
- local eggs = garden:FindFirstChild("Eggs")
- if eggs then
- for _, egg in pairs(eggs:GetChildren()) do
- if egg:FindFirstChild("Ready") and egg.Ready.Value then
- local args = {egg}
- Remotes:FindFirstChild("HatchEgg"):FireServer(unpack(args))
- wait(0.1)
- end
- end
- end
- end
- end
- end)
- end
- end,
- })
- -- Pets Tab
- local PetsTab = Window:CreateTab("๐พ Pets", nil)
- PetsTab:CreateSection("Pet Automation")
- PetsTab:CreateDropdown({
- Name = "Select Pet Food",
- Options = PlantList,
- CurrentOption = "Carrot",
- Flag = "SelectedPetFood",
- Callback = function(Option)
- ScriptSettings.SelectedPetFood = Option
- Rayfield:Notify({
- Title = "Pet Food Selected",
- Content = "Feeding pets with: " .. Option,
- Duration = 2,
- Image = 4483362458,
- })
- end,
- })
- PetsTab:CreateToggle({
- Name = "Auto Feed Pets",
- CurrentValue = false,
- Flag = "AutoFeedPets",
- Callback = function(Value)
- ScriptSettings.AutoFeedPets = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoFeedPets do
- wait(1)
- local pets = Player:FindFirstChild("Pets")
- if pets then
- for _, pet in pairs(pets:GetChildren()) do
- if pet:FindFirstChild("Hunger") and pet.Hunger.Value < 100 then
- local args = {
- [1] = pet,
- [2] = ScriptSettings.SelectedPetFood
- }
- Remotes:FindFirstChild("FeedPet"):FireServer(unpack(args))
- end
- end
- end
- end
- end)
- end
- end,
- })
- PetsTab:CreateToggle({
- Name = "Auto Put Pets In Garden",
- CurrentValue = false,
- Flag = "AutoPutPetsInGarden",
- Callback = function(Value)
- ScriptSettings.AutoPutPetsInGarden = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoPutPetsInGarden do
- wait(2)
- local pets = Player:FindFirstChild("Pets")
- if pets then
- for _, pet in pairs(pets:GetChildren()) do
- local args = {
- [1] = pet,
- [2] = GetPlayerGarden()
- }
- Remotes:FindFirstChild("PlacePet"):FireServer(unpack(args))
- end
- end
- end
- end)
- end
- end,
- })
- PetsTab:CreateToggle({
- Name = "Auto Sell Pets",
- CurrentValue = false,
- Flag = "AutoSellPets",
- Callback = function(Value)
- ScriptSettings.AutoSellPets = Value
- if Value then
- spawn(function()
- while ScriptSettings.AutoSellPets do
- wait(1)
- local pets = Player:FindFirstChild("Pets")
- if pets then
- for _, pet in pairs(pets:GetChildren()) do
- if pet:FindFirstChild("Rarity") and pet.Rarity.Value == "Common" then
- local args = {pet}
- Remotes:FindFirstChild("SellPet"):FireServer(unpack(args))
- end
- end
- end
- end
- end)
- end
- end,
- })
- PetsTab:CreateButton({
- Name = "Collect All Pets",
- Callback = function()
- local garden = GetPlayerGarden()
- if garden then
- local pets = garden:FindFirstChild("Pets")
- if pets then
- for _, pet in pairs(pets:GetChildren()) do
- local args = {pet}
- Remotes:FindFirstChild("CollectPet"):FireServer(unpack(args))
- wait(0.1)
- end
- end
- end
- Rayfield:Notify({
- Title = "Pets Collected",
- Content = "All pets collected from garden",
- Duration = 3,
- Image = 4483362458,
- })
- end,
- })
- -- Player Tab
- local PlayerTab = Window:CreateTab("๐ค Player", nil)
- PlayerTab:CreateSection("Player Modifications")
- PlayerTab:CreateSlider({
- Name = "Walk Speed",
- Range = {16, 200},
- Increment = 1,
- CurrentValue = 16,
- Flag = "WalkSpeed",
- Callback = function(Value)
- ScriptSettings.WalkSpeed = Value
- Humanoid.WalkSpeed = Value
- end,
- })
- PlayerTab:CreateSlider({
- Name = "Jump Power",
- Range = {50, 300},
- Increment = 1,
- CurrentValue = 50,
- Flag = "JumpPower",
- Callback = function(Value)
- ScriptSettings.JumpPower = Value
- Humanoid.JumpPower = Value
- end,
- })
- PlayerTab:CreateToggle({
- Name = "No Clip",
- CurrentValue = false,
- Flag = "NoClip",
- Callback = function(Value)
- ScriptSettings.NoClip = Value
- end,
- })
- PlayerTab:CreateButton({
- Name = "Reset Character",
- Callback = function()
- Character:BreakJoints()
- end,
- })
- -- Misc Tab
- local MiscTab = Window:CreateTab("๐ง Misc", nil)
- MiscTab:CreateSection("Miscellaneous")
- MiscTab:CreateToggle({
- Name = "White Screen",
- CurrentValue = false,
- Flag = "WhiteScreen",
- Callback = function(Value)
- ScriptSettings.WhiteScreen = Value
- if Value then
- local screenGui = Player.PlayerGui:FindFirstChild("ScreenGui") or Instance.new("ScreenGui", Player.PlayerGui)
- local whiteScreen = Instance.new("Frame")
- whiteScreen.Name = "WhiteScreen"
- whiteScreen.Size = UDim2.new(1, 0, 1, 0)
- whiteScreen.Position = UDim2.new(0, 0, 0, 0)
- whiteScreen.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- whiteScreen.BorderSizePixel = 0
- whiteScreen.ZIndex = 999999
- whiteScreen.Parent = screenGui
- else
- local screenGui = Player.PlayerGui:FindFirstChild("ScreenGui")
- if screenGui then
- local whiteScreen = screenGui:FindFirstChild("WhiteScreen")
- if whiteScreen then
- whiteScreen:Destroy()
- end
- end
- end
- end,
- })
- MiscTab:CreateButton({
- Name = "Rejoin Server",
- Callback = function()
- game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, Player)
- end,
- })
- MiscTab:CreateButton({
- Name = "Server Hop",
- Callback = function()
- local TeleportService = game:GetService("TeleportService")
- TeleportService:Teleport(game.PlaceId, Player)
- end,
- })
- -- Main Loop
- RunService.Heartbeat:Connect(function()
- -- No Clip
- if ScriptSettings.NoClip then
- for _, part in pairs(Character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = false
- end
- end
- end
- -- Update Stats every 2 seconds
- if tick() % 2 < 0.016 then
- UpdateStats()
- GardenValueLabel:Set("Garden Value: $" .. math.floor(Stats.GardenValue))
- BackpackValueLabel:Set("Backpack Value: $" .. math.floor(Stats.BackpackValue))
- InHandValueLabel:Set("In-Hand Item Value: $" .. math.floor(Stats.InHandValue))
- end
- end)
- -- Character respawn handler
- Player.CharacterAdded:Connect(function(char)
- Character = char
- Humanoid = Character:WaitForChild("Humanoid")
- HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- wait(1)
- Humanoid.WalkSpeed = ScriptSettings.WalkSpeed
- Humanoid.JumpPower = ScriptSettings.JumpPower
- end)
- Rayfield:Notify({
- Title = "Script Loaded!",
- Content = "Grow A Garden script by JayRBLX Scripts has been loaded successfully!",
- Duration = 5,
- Image = 4483362458,
- })
- print("Grow A Garden Script by JayRBLX Scripts - Loaded Successfully!")
Advertisement
Add Comment
Please, Sign In to add comment