local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "YouHub | Grow A Garden", Icon = 97296381694913, LoadingTitle = "YouHub is loading...", LoadingSubtitle = "by Chosentechies", Theme = "Ocean", ConfigurationSaving = { Enabled = true, FolderName = nil, FileName = "Youhub grow a garden" }, Discord = { Enabled = true, Invite = "discord.gg/p65VYjZ9k3", RememberJoins = true }, KeySystem = false, KeySettings = { Title = "Untitled", Subtitle = "Key System", Note = "No method of obtaining the key is provided", FileName = "Key", SaveKey = true, GrabKeyFromSite = false, Key = {"Hello","Hello2" } } }) Rayfield:Notify({ Title = "Join Discord", Content = "Join Discord for scirpt updates: discord.gg/p65VYjZ9k3", Duration = 6.5, Image = nil, }) -- Tabs local homeTab = Window:CreateTab("Home", nil) -- Title, Image local atTab = Window:CreateTab("Auto Farm", nil) -- Title, Image local tpTab = Window:CreateTab("Teleport", nil) -- Title, Image local optimizationTab = Window:CreateTab("optimization", nil) -- Title, Image ----------------------------------HOME TAB------------------------------------------------------ -- Info section local Section = homeTab:CreateSection("Info") local Paragraph = homeTab:CreateParagraph({ Title = "YouHub | Grow a Garden Functions", Content = [[ Current Features: - Auto buy seeds (Carrot, Strawberry, Blueberry, Orange Tulip, Tomato, Daffodil, Watermelon, Dragon Fruit) will add more soon - Auto buy Delay - Auto sell all - Auto sell Delay - Teleport (Stands and Gardens) More features are on the way! Stay tuned! ]] }) -- Label: Links local Label = homeTab:CreateLabel("Links", nil, Color3.fromRGB(255, 255, 255), false) -- Discord Button: Copies Discord Invite local Button = homeTab:CreateButton({ Name = "Discord", Callback = function() setclipboard("https://discord.gg/p65VYjZ9k3") warn("✅ Discord link copied to clipboard!") end, }) -- Label: Back to Main Script Info local Label2 = homeTab:CreateLabel("Back to main script if you opened wrong game script", nil, Color3.fromRGB(255, 255, 255), false) -- Button: Load Main Script local Button2 = homeTab:CreateButton({ Name = "Back To Main Script", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/urmoit/YouHub/refs/heads/main/main%20uncrrypted.lua"))() end, }) local Section = homeTab:CreateSection("Credit") -- Create a paragraph for the credit information local creditParagraph = homeTab:CreateParagraph({ Title = "Credits", Content = [[ Special Thanks to: - Chosentechies/Urmoit for creating YouHub. - Sirius for the Rayfield UI Library. - Community members for support and feedback. ]] }) -- Optionally, you can also add more specific credits or mention contributors local additionalCredits = homeTab:CreateParagraph({ Title = "Additional Credits", Content = [[ - Script contributors. - Beta testers for providing feedback. - Everyone involved in the development and testing process. ]] }) -- Button to copy the Rayfield documentation link local Button = homeTab:CreateButton({ Name = "Copy Rayfield Docs Link", Callback = function() -- Copy Rayfield docs link to clipboard setclipboard("https://docs.sirius.menu/rayfield") end, }) ----------------------------------at TAB------------------------------------------------------ -- Auto buy seed section local Section = atTab:CreateSection("Auto buy seeds") local selectedBuySeed = "Carrot" local buyDelay = 2 local buySeedDropdown = atTab:CreateDropdown({ Name = "Select seed", Options = {"Carrot","Strawberry","Blueberry","Tomato","Daffodil","Watermelon","Dragon Fruit", "Orange Tulip"}, CurrentOption = {"Carrot"}, MultipleOptions = false, Flag = "BuySeedDropdown", Callback = function(Options) selectedBuySeed = Options[1] end, }) local buyDelaySlider = atTab:CreateSlider({ Name = "Buy delay", Range = {0, 50}, Increment = 1, Suffix = "s", CurrentValue = 2, Flag = "BuyDelaySlider", Callback = function(Value) buyDelay = Value end, }) local autoBuyEnabled = false local buySeedToggle = atTab:CreateToggle({ Name = "Auto buy seed", CurrentValue = false, Flag = "BuySeedToggle", Callback = function(Value) autoBuyEnabled = Value if autoBuyEnabled then task.spawn(function() while autoBuyEnabled do game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BuySeedStock"):FireServer(selectedBuySeed) task.wait(buyDelay) end end) end end, }) -- Auto plant seed section local Section = atTab:CreateSection("Auto plant seeds") local Label = atTab:CreateLabel("Auto plant coming soon", 4483362458, Color3.fromRGB(255, 255, 255), false) -- Title, Icon, Color, IgnoreTheme -- local selectedPlantSeed = "Carrot" -- local plantDelay = 2 -- local plantSeedDropdown = atTab:CreateDropdown({ -- Name = "Select seed", -- Options = {"Carrot","Strawberry","Blueberry","Tomato","Daffodil","Watermelon","Dragon Fruit", "Orange Tulip"}, -- CurrentOption = {"Carrot"}, -- MultipleOptions = false, -- Flag = "PlantSeedDropdown", -- Callback = function(Options) -- selectedPlantSeed = Options[1] -- end, -- }) -- local plantPositions = { -- ["Carrot"] = Vector3.new(-90.4021, 0.13552513718605042, -86.3418), -- ["Strawberry"] = Vector3.new(-92.2601, 0.13552513718605042, -85.0339), -- ["Blueberry"] = Vector3.new(-86.6683, 0.13552513718605042, -85.3788), -- ["Tomato"] = Vector3.new(-82.0379, 0.13552513718605042, -85.6117), -- ["Daffodil"] = Vector3.new(-76.8204, 0.13552513718605042, -85.5276), -- ["Watermelon"] = Vector3.new(-72.3004, 0.13552513718605042, -85.4269), -- ["Dragon Fruit"] = Vector3.new(-68.8130, 0.13552513718605042, -85.2966), -- ["Orange Tulip"] = Vector3.new(-65.0000, 0.13552513718605042, -85.0000), -- } -- local plantDelaySlider = atTab:CreateSlider({ -- Name = "Plant delay", -- Range = {0, 50}, -- Increment = 1, -- Suffix = "s", -- CurrentValue = 2, -- Flag = "PlantDelaySlider", -- Callback = function(Value) -- plantDelay = Value -- end, -- }) -- Auto sell section local Section = atTab:CreateSection("Auto sell") local autoSellEnabled = false local sellDelay = 5 local sellPosition = Vector3.new(61.585, 2.766, 0.427) local returnPosition = nil -- Will be stored when selling starts local sellDelaySlider = atTab:CreateSlider({ Name = "sell delay", Range = {1, 30}, Increment = 1, Suffix = "s", CurrentValue = 5, Flag = "SellDelaySlider", Callback = function(Value) sellDelay = Value end, }) local sellToggle = atTab:CreateToggle({ Name = "Auto sell all", CurrentValue = false, Flag = "SellToggle", Callback = function(Value) autoSellEnabled = Value if autoSellEnabled then task.spawn(function() local Players = game:GetService("Players") local lp = Players.LocalPlayer while autoSellEnabled do if lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then local hrp = lp.Character.HumanoidRootPart returnPosition = hrp.Position hrp.CFrame = CFrame.new(sellPosition) task.wait(2) -- stay at sell position for 2 sec game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("Sell_Inventory"):FireServer() if returnPosition then hrp.CFrame = CFrame.new(returnPosition) end end task.wait(sellDelay) end end) end end, }) ----------------------------------tp TAB------------------------------------------------------ -- teleport to stands section local Section = tpTab:CreateSection("teleport to stands") local player = game:GetService("Players").LocalPlayer local function teleportTo(position) if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.CFrame = CFrame.new(position) end end local Button = tpTab:CreateButton({ Name = "Seed shop stand", Callback = function() teleportTo(Vector3.new(61.585, 2.766, -27.004)) end, }) local Button = tpTab:CreateButton({ Name = "Gear shop stand", Callback = function() teleportTo(Vector3.new(-260.415, 2.766, -31.378)) end, }) local Button = tpTab:CreateButton({ Name = "Sell stand", Callback = function() teleportTo(Vector3.new(61.585, 2.766, 0.427)) end, }) local Button = tpTab:CreateButton({ Name = "Egg stand", Callback = function() teleportTo(Vector3.new(-260.415, 2.766, -1.69)) end, }) -- teleport to garden section local Section = tpTab:CreateSection("teleport to garden") local selectedGarden = "garden 1" local gardenPositions = { ["garden 1"] = Vector3.new(9, 3, 27), ["garden 2"] = Vector3.new(9, 3, -56), ["garden 3"] = Vector3.new(-100, 2, 30), ["garden 4"] = Vector3.new(-100, 3, -56), ["garden 5"] = Vector3.new(-212, 3, 30), ["garden 6"] = Vector3.new(-212, 3, -56), } local Dropdown = tpTab:CreateDropdown({ Name = "Select garden", Options = {"garden 1","garden 2", "garden 3", "garden 4", "garden 5", "garden 6"}, CurrentOption = {"garden 1"}, MultipleOptions = false, Flag = "Dropdown1", Callback = function(Options) selectedGarden = Options[1] end, }) local Button = tpTab:CreateButton({ Name = "Teleport to garden", Callback = function() local pos = gardenPositions[selectedGarden] if pos then teleportTo(pos) end end, }) ----------------------------------optimization TAB------------------------------------------------------ local Section = optimizationTab:CreateSection("Delete Useless Objects") local Paragraph = optimizationTab:CreateParagraph({ Title = "Optimization Info", Content = [[ This option lets you delete decorative or non-functional objects to improve performance, especially on lower-end devices. If you delete these objects or models, you will need to **rejoin the game** to restore them. This can help reduce lag or improve load times during gameplay. You can select multiple types of objects to remove. This affects every 'Farm' instance in the workspace. ]] }) local Label = optimizationTab:CreateLabel("This function may currently be unstable; a fix will be implemented soon if necessary.", 4483362458, Color3.fromRGB(255, 255, 255), false) -- Title, Icon, Color, IgnoreTheme -- Define what to delete based on selection local deletableOptions = { ["Fences"] = { Folder = "Decoration", ObjectName = "Farm Fence" -- all fences have this name }, ["Grow Sign"] = { Name = "Grow_Sign" }, ["Sign"] = { Name = "Sign" } } local selectedOptions = {} local Dropdown = optimizationTab:CreateDropdown({ Name = "Choose what you want to delete (you can choose multiple)", Options = {"Fences", "Grow Sign", "Sign"}, CurrentOption = {}, MultipleOptions = true, Flag = "Dropdown1", Callback = function(Options) selectedOptions = Options end, }) local Button = optimizationTab:CreateButton({ Name = "Deleted Objects", Callback = function() local farmParent = workspace:FindFirstChild("Farm") if not farmParent then warn("Farm parent folder not found.") return end for _, farm in ipairs(farmParent:GetChildren()) do if farm:IsA("Folder") then for _, selectedName in ipairs(selectedOptions) do local deleteInfo = deletableOptions[selectedName] if deleteInfo then if deleteInfo.Folder and deleteInfo.ObjectName then local decorationFolder = farm:FindFirstChild(deleteInfo.Folder) if decorationFolder then for _, item in ipairs(decorationFolder:GetChildren()) do if item.Name == deleteInfo.ObjectName then item:Destroy() end end end elseif deleteInfo.Name then local child = farm:FindFirstChild(deleteInfo.Name) if child then child:Destroy() end end end end end end print("Selected objects deleted from all Farm folders.") end, })