Advertisement
satyajitsrichandan

🧠 Rayfield UI Script (Auto-Farming, Auto-Sell)

Jun 24th, 2025
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. -- 🧠 Grow a Garden - Rayfield UI Script (2025)
  2. -- Clean GUI using Rayfield UI for farming and selling
  3.  
  4. -- Load Rayfield UI Library
  5. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  6.  
  7. local Window = Rayfield:CreateWindow({
  8. Name = "Grow a Garden UI",
  9. LoadingTitle = "Grow a Garden",
  10. ConfigurationSaving = {
  11. Enabled = true,
  12. FolderName = "GrowAGardenUI"
  13. }
  14. })
  15.  
  16. local MainTab = Window:CreateTab("Main", 4483362458)
  17.  
  18. -- Farming Toggle
  19. MainTab:CreateToggle({
  20. Name = "Auto Farm",
  21. CurrentValue = false,
  22. Callback = function(autoFarmEnabled)
  23. if autoFarmEnabled then
  24. task.spawn(function()
  25. while autoFarmEnabled do
  26. for _, plot in pairs(workspace.GardenPlots:GetChildren()) do
  27. if plot:FindFirstChild("Plant") then
  28. game.ReplicatedStorage:FireServer("HarvestPlant", plot)
  29. wait(0.1)
  30. game.ReplicatedStorage:FireServer("PlantSeed", plot, "CarrotSeed")
  31. wait(0.1)
  32. game.ReplicatedStorage:FireServer("WaterPlant", plot)
  33. end
  34. end
  35. wait(2)
  36. end
  37. end)
  38. end
  39. end
  40. })
  41.  
  42. -- Auto Sell Button
  43. MainTab:CreateButton({
  44. Name = "Sell All Crops",
  45. Callback = function()
  46. for _, plot in pairs(workspace.GardenPlots:GetChildren()) do
  47. game.ReplicatedStorage:FireServer("SellCrop", plot)
  48. wait(0.1)
  49. end
  50. end
  51. })
  52.  
  53. print("✅ Rayfield UI Script Loaded")
  54.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement