Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 🧠Grow a Garden - Rayfield UI Script (2025)
- -- Clean GUI using Rayfield UI for farming and selling
- -- Load Rayfield UI Library
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "Grow a Garden UI",
- LoadingTitle = "Grow a Garden",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = "GrowAGardenUI"
- }
- })
- local MainTab = Window:CreateTab("Main", 4483362458)
- -- Farming Toggle
- MainTab:CreateToggle({
- Name = "Auto Farm",
- CurrentValue = false,
- Callback = function(autoFarmEnabled)
- if autoFarmEnabled then
- task.spawn(function()
- while autoFarmEnabled do
- for _, plot in pairs(workspace.GardenPlots:GetChildren()) do
- if plot:FindFirstChild("Plant") then
- game.ReplicatedStorage:FireServer("HarvestPlant", plot)
- wait(0.1)
- game.ReplicatedStorage:FireServer("PlantSeed", plot, "CarrotSeed")
- wait(0.1)
- game.ReplicatedStorage:FireServer("WaterPlant", plot)
- end
- end
- wait(2)
- end
- end)
- end
- end
- })
- -- Auto Sell Button
- MainTab:CreateButton({
- Name = "Sell All Crops",
- Callback = function()
- for _, plot in pairs(workspace.GardenPlots:GetChildren()) do
- game.ReplicatedStorage:FireServer("SellCrop", plot)
- wait(0.1)
- end
- end
- })
- print("✅ Rayfield UI Script Loaded")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement