wghcbgfftgh

Untitled

May 11th, 2025 (edited)
1,370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.83 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local InsertService = game:GetService("InsertService")
  3. local MarketplaceService = game:GetService("MarketplaceService")
  4. local Players = game:GetService("Players")
  5. local RunService = game:GetService("RunService")
  6.  
  7. local LocalPlayer = Players.LocalPlayer
  8. local Leaderstats = LocalPlayer.leaderstats
  9. local Backpack = LocalPlayer.Backpack
  10. local PlayerGui = LocalPlayer.PlayerGui
  11.  
  12. local ShecklesCount = Leaderstats.Sheckles
  13. local GameInfo = MarketplaceService:GetProductInfo(game.PlaceId)
  14.  
  15. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/jensonhirst/Orion/main/source')))()
  16. local GameEvents = ReplicatedStorage.GameEvents
  17. local Farms = workspace.Farm
  18.  
  19. players = {}
  20.  
  21. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  22. table.insert(players,v.Name)
  23. end
  24.  
  25. local SelectedSeed
  26. local AutoPlantRandom
  27. local AutoPlant
  28. local AutoHarvest
  29. local AutoBuy
  30. local SellThreshold
  31. local NoClip
  32. local AutoWalkAllowRandom
  33. local delay
  34.  
  35. local Window = OrionLib:MakeWindow({Name = "Kuncicoco hub | [🌙] Grow a Garden 🍄", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  36.  
  37. local Tab = Window:MakeTab({
  38. Name = "Home",
  39. Icon = "rbxassetid://4483345998",
  40. PremiumOnly = false
  41. })
  42.  
  43. local Tab1 = Window:MakeTab({
  44. Name = "Auto Farm",
  45. Icon = "rbxassetid://4483345998",
  46. PremiumOnly = false
  47. })
  48.  
  49. local Tab2 = Window:MakeTab({
  50. Name = "Fruits",
  51. Icon = "rbxassetid://4483345998",
  52. PremiumOnly = false
  53. })
  54.  
  55. local Tab3 = Window:MakeTab({
  56. Name = "Sell [Shop]",
  57. Icon = "rbxassetid://4483345998",
  58. PremiumOnly = false
  59. })
  60.  
  61. local Tab4 = Window:MakeTab({
  62. Name = "Players",
  63. Icon = "rbxassetid://4483345998",
  64. PremiumOnly = false
  65. })
  66.  
  67.  
  68. local Tab5 = Window:MakeTab({
  69. Name = "Settings",
  70. Icon = "rbxassetid://4483345998",
  71. PremiumOnly = false
  72. })
  73.  
  74. Tab:AddParagraph("Nothing :/","i not gonna tell you")
  75.  
  76. local function Plant(Position: Vector3, Seed: string)
  77. GameEvents.Plant_RE:FireServer(Position, Seed)
  78. wait(.3)
  79. end
  80.  
  81. local function GetFarms()
  82. return Farms:GetChildren()
  83. end
  84.  
  85. local function GetFarmOwner(Farm: Folder): string
  86. local Important = Farm.Important
  87. local Data = Important.Data
  88. local Owner = Data.Owner
  89.  
  90. return Owner.Value
  91. end
  92.  
  93. local function GetFarm(PlayerName: string): Folder?
  94. local Farms = GetFarms()
  95. for _, Farm in next, Farms do
  96. local Owner = GetFarmOwner(Farm)
  97. if Owner == PlayerName then
  98. return Farm
  99. end
  100. end
  101. return
  102. end
  103.  
  104. local IsSelling = false
  105. local function SellInventory()
  106. local Character = LocalPlayer.Character
  107. local Previous = Character:GetPivot()
  108. local PreviousSheckles = ShecklesCount.Value
  109.  
  110. --// Prevent conflict
  111. if IsSelling then return end
  112. IsSelling = true
  113.  
  114. Character:PivotTo(CFrame.new(62, 4, -26))
  115. while wait() do
  116. if ShecklesCount.Value ~= PreviousSheckles then break end
  117. GameEvents.Sell_Inventory:FireServer()
  118. end
  119. Character:PivotTo(Previous)
  120.  
  121. wait(0.2)
  122. IsSelling = false
  123. end
  124.  
  125. local function BuySeed(Seed: string)
  126. GameEvents.BuySeedStock:FireServer(Seed)
  127. end
  128.  
  129. local function BuyAllSelectedSeeds()
  130. local Seed = SelectedSeedStock.Selected
  131. local Stock = SeedStock[Seed]
  132.  
  133. if not Stock or Stock <= 0 then return end
  134.  
  135. for i = 1, Stock do
  136. BuySeed(Seed)
  137. end
  138. end
  139.  
  140. local function GetSeedInfo(Seed: Tool): number?
  141. local PlantName = Seed:FindFirstChild("Plant_Name")
  142. local Count = Seed:FindFirstChild("Numbers")
  143. if not PlantName then return end
  144.  
  145. return PlantName.Value, Count.Value
  146. end
  147.  
  148. local function CollectSeedsFromParent(Parent, Seeds: table)
  149. for _, Tool in next, Parent:GetChildren() do
  150. local Name, Count = GetSeedInfo(Tool)
  151. if not Name then continue end
  152.  
  153. Seeds[Name] = {
  154. Count = Count,
  155. Tool = Tool
  156. }
  157. end
  158. end
  159.  
  160. local function CollectCropsFromParent(Parent, Crops: table)
  161. for _, Tool in next, Parent:GetChildren() do
  162. local Name = Tool:FindFirstChild("Item_String")
  163. if not Name then continue end
  164.  
  165. table.insert(Crops, Tool)
  166. end
  167. end
  168.  
  169. local function GetOwnedSeeds(): table
  170. local Character = LocalPlayer.Character
  171.  
  172. CollectSeedsFromParent(Backpack, OwnedSeeds)
  173. CollectSeedsFromParent(Character, OwnedSeeds)
  174.  
  175. return OwnedSeeds
  176. end
  177.  
  178. local function GetInvCrops(): table
  179. local Character = LocalPlayer.Character
  180.  
  181. local Crops = {}
  182. CollectCropsFromParent(Backpack, Crops)
  183. CollectCropsFromParent(Character, Crops)
  184.  
  185. return Crops
  186. end
  187.  
  188. local function GetArea(Base: BasePart)
  189. local Center = Base:GetPivot()
  190. local Size = Base.Size
  191.  
  192. --// Bottom left
  193. local X1 = math.ceil(Center.X - (Size.X/2))
  194. local Z1 = math.ceil(Center.Z - (Size.Z/2))
  195.  
  196. --// Top right
  197. local X2 = math.floor(Center.X + (Size.X/2))
  198. local Z2 = math.floor(Center.Z + (Size.Z/2))
  199.  
  200. return X1, Z1, X2, Z2
  201. end
  202.  
  203. local function EquipCheck(Tool)
  204. local Character = LocalPlayer.Character
  205. local Humanoid = Character.Humanoid
  206.  
  207. if Tool.Parent ~= Backpack then return end
  208. Humanoid:EquipTool(Tool)
  209. end
  210.  
  211. --// Auto farm functions
  212. local MyFarm = GetFarm(LocalPlayer.Name)
  213. local MyImportant = MyFarm.Important
  214. local PlantLocations = MyImportant.Plant_Locations
  215. local PlantsPhysical = MyImportant.Plants_Physical
  216.  
  217. local Dirt = PlantLocations:FindFirstChildOfClass("Part")
  218. local X1, Z1, X2, Z2 = GetArea(Dirt)
  219.  
  220. local function GetRandomFarmPoint(): Vector3
  221. local FarmLands = PlantLocations:GetChildren()
  222. local FarmLand = FarmLands[math.random(1, #FarmLands)]
  223.  
  224. local X1, Z1, X2, Z2 = GetArea(FarmLand)
  225. local X = math.random(X1, X2)
  226. local Z = math.random(Z1, Z2)
  227.  
  228. return Vector3.new(X, 4, Z)
  229. end
  230.  
  231. local function AutoPlantLoop()
  232. local Seed = SelectedSeed.Selected
  233.  
  234. local SeedData = OwnedSeeds[Seed]
  235. if not SeedData then return end
  236.  
  237. local Count = SeedData.Count
  238. local Tool = SeedData.Tool
  239.  
  240. --// Check for stock
  241. if Count <= 0 then return end
  242.  
  243. local Planted = 0
  244. local Step = 1
  245.  
  246. --// Check if the client needs to equip the tool
  247. EquipCheck(Tool)
  248.  
  249. --// Plant at random points
  250. if AutoPlantRandom.Value then
  251. for i = 1, Count do
  252. local Point = GetRandomFarmPoint()
  253. Plant(Point, Seed)
  254. end
  255. end
  256.  
  257. --// Plant on the farmland area
  258. for X = X1, X2, Step do
  259. for Z = Z1, Z2, Step do
  260. if Planted > Count then break end
  261. local Point = Vector3.new(X, 0.13, Z)
  262.  
  263. Planted += 1
  264. Plant(Point, Seed)
  265. end
  266. end
  267. end
  268.  
  269. local function HarvestPlant(Plant: Model)
  270. local Prompt = Plant:FindFirstChild("ProximityPrompt", true)
  271.  
  272. --// Check if it can be harvested
  273. if not Prompt then return end
  274. fireproximityprompt(Prompt)
  275. end
  276.  
  277. local function GetSeedStock(IgnoreNoStock: boolean?): table
  278. local SeedShop = PlayerGui.Seed_Shop
  279. local Items = SeedShop:FindFirstChild("Item_Size", true).Parent
  280.  
  281. local NewList = {}
  282.  
  283. for _, Item in next, Items:GetChildren() do
  284. local MainFrame = Item:FindFirstChild("Main_Frame")
  285. if not MainFrame then continue end
  286.  
  287. local StockText = MainFrame.Stock_Text.Text
  288. local StockCount = tonumber(StockText:match("%d+"))
  289.  
  290. --// Seperate list
  291. if IgnoreNoStock then
  292. if StockCount <= 0 then continue end
  293. NewList[Item.Name] = StockCount
  294. continue
  295. end
  296.  
  297. SeedStock[Item.Name] = StockCount
  298. end
  299.  
  300. return IgnoreNoStock and NewList or SeedStock
  301. end
  302.  
  303. local function CanHarvest(Plant): boolean?
  304. local Prompt = Plant:FindFirstChild("ProximityPrompt", true)
  305. if not Prompt then return end
  306. if not Prompt.Enabled then return end
  307.  
  308. return true
  309. end
  310.  
  311. local function CollectHarvestable(Parent, Plants, IgnoreDistance: boolean?)
  312. local Character = LocalPlayer.Character
  313. local PlayerPosition = Character:GetPivot().Position
  314.  
  315. for _, Plant in next, Parent:GetChildren() do
  316. --// Fruits
  317. local Fruits = Plant:FindFirstChild("Fruits")
  318. if Fruits then
  319. CollectHarvestable(Fruits, Plants, IgnoreDistance)
  320. end
  321.  
  322. --// Distance check
  323. local PlantPosition = Plant:GetPivot().Position
  324. local Distance = (PlayerPosition-PlantPosition).Magnitude
  325. if not IgnoreDistance and Distance > 15 then continue end
  326.  
  327. --// Ignore check
  328. local Variant = Plant:FindFirstChild("Variant")
  329. if HarvestIgnores[Variant.Value] then return end
  330.  
  331. --// Collect
  332. if CanHarvest(Plant) then
  333. table.insert(Plants, Plant)
  334. end
  335. end
  336. return Plants
  337. end
  338.  
  339. local function GetHarvestablePlants(IgnoreDistance: boolean?)
  340. local Plants = {}
  341. CollectHarvestable(PlantsPhysical, Plants, IgnoreDistance)
  342. return Plants
  343. end
  344.  
  345. local function HarvestPlants(Parent: Model)
  346. local Plants = GetHarvestablePlants()
  347. for _, Plant in next, Plants do
  348. HarvestPlant(Plant)
  349. end
  350. end
  351.  
  352. local function AutoSellCheck()
  353. local CropCount = #GetInvCrops()
  354.  
  355. if not AutoSell.Value then return end
  356. if CropCount < SellThreshold.Value then return end
  357.  
  358. SellInventory()
  359. end
  360.  
  361. local function AutoWalkLoop()
  362. if IsSelling then return end
  363.  
  364. local Character = LocalPlayer.Character
  365. local Humanoid = Character.Humanoid
  366.  
  367. local Plants = GetHarvestablePlants(true)
  368. local RandomAllowed = AutoWalkAllowRandom.Value
  369. local DoRandom = #Plants == 0 or math.random(1, 3) == 2
  370.  
  371. --// Random point
  372. if RandomAllowed and DoRandom then
  373. local Position = GetRandomFarmPoint()
  374. Humanoid:MoveTo(Position)
  375. AutoWalkStatus.Text = "Random point"
  376. return
  377. end
  378.  
  379. --// Move to each plant
  380. for _, Plant in next, Plants do
  381. local Position = Plant:GetPivot().Position
  382. Humanoid:MoveTo(Position)
  383. AutoWalkStatus.Text = Plant.Name
  384. end
  385. end
  386.  
  387. local function NoclipLoop()
  388. local Character = LocalPlayer.Character
  389. if not NoClip.Value then return end
  390. if not Character then return end
  391.  
  392. for _, Part in Character:GetDescendants() do
  393. if Part:IsA("BasePart") then
  394. Part.CanCollide = false
  395. end
  396. end
  397. end
  398.  
  399. local function MakeLoop(Toggle, Func)
  400. coroutine.wrap(function()
  401. while wait(.01) do
  402. if not Toggle.Value then continue end
  403. Func()
  404. end
  405. end)()
  406. end
  407.  
  408. local function StartServices()
  409. --// Auto-Walk
  410. MakeLoop(AutoWalk, function()
  411. local MaxWait = AutoWalkMaxWait.Value
  412. AutoWalkLoop()
  413. wait(math.random(1, MaxWait))
  414. end)
  415.  
  416. --// Auto-Harvest
  417. MakeLoop(AutoHarvest, function()
  418. HarvestPlants(PlantsPhysical)
  419. end)
  420.  
  421. --// Auto-Buy
  422. MakeLoop(AutoBuy, BuyAllSelectedSeeds)
  423.  
  424. --// Auto-Plant
  425. MakeLoop(AutoPlant, AutoPlantLoop)
  426.  
  427. --// Get stocks
  428. while wait(.1) do
  429. GetSeedStock()
  430. GetOwnedSeeds()
  431. end
  432. end
  433.  
  434. local function farm(Value)
  435. return Farms:GetChildren()
  436. end
  437.  
  438. local function delayfarm(Value)
  439. delay = Value
  440. end
  441.  
  442. local function delayfarm1(Value)
  443. shared.Farms = Value
  444. end
  445.  
  446. local function delayfarm2(Value)
  447. shared.Farms2 = Value
  448. end
  449.  
  450. local function delayfarm3(Value)
  451. shared.autsuper = Value
  452. end
  453.  
  454. local function sell(Value)
  455. local Seed = SelectedSeedStock.Selected
  456. local Stock = SeedStock[Seed]
  457.  
  458. if not Stock or Stock <= 0 then return end
  459.  
  460. for i = 1, Stock do
  461. BuySeed(Seed)
  462. end
  463. end
  464.  
  465. Tab1:AddToggle({
  466. Name = "Auto Farm",
  467. Default = false,
  468. Callback = function(Value)
  469. farm(Value)
  470. end
  471. })
  472.  
  473. Tab1:AddToggle({
  474. Name = "Auto Farm v2",
  475. Default = false,
  476. Callback = function(Value)
  477. farm(Value)
  478. end
  479. })
  480.  
  481. Tab1:AddLabel()
  482.  
  483. Tab1:AddButton({
  484. Name = "[Super] Auto Farm",
  485. Callback = function(Value)
  486. delayfarm3(Value)
  487. end
  488. })
  489.  
  490. Tab1:AddSlider({
  491. Name = "Auto Farm [DELAY]",
  492. Min = 0,
  493. Max = 100,
  494. Default = 5,
  495. Color = Color3.fromRGB(0,255,255),
  496. Increment = 1,
  497. ValueName = "auto farm :)",
  498. Callback = function(Value)
  499. delayfarm(Value)
  500. end
  501. })
  502.  
  503. Tab1:AddButton({
  504. Name = "[Mini] Auto Farm",
  505. Callback = function(Value)
  506. delayfarm3(Value)
  507. end
  508. })
  509.  
  510. Tab1:AddSlider({
  511. Name = "Auto Farm v2 [DELAY]",
  512. Min = 0,
  513. Max = 100,
  514. Default = 5,
  515. Color = Color3.fromRGB(0,255,255),
  516. Increment = 1,
  517. ValueName = "auto farm :)",
  518. Callback = function(Value)
  519. delayfarm1(Value)
  520. end
  521. })
  522.  
  523. Tab2:AddDropdown({
  524. Name = "Secret Stole Fruits",
  525. Default = "1",
  526. Options = {"Carrot", "Bamboo", "stawberry", "blueberry", "tomato seed", "orange tuilp", "corn seed", "daffodil", "walermelon", "pumpkin", "apple", "coconut", "cactus", "dragon fruits", "mango", "grape", "mushroon", "pepper", "cacao"},
  527. Callback = function(Value)
  528. print(Value)
  529. end
  530. })
  531.  
  532. Tab2:AddDropdown({
  533. Name = "Stole Fruits Players",
  534. Default = players,
  535. Options = players,
  536. Callback = function(Value)
  537. print(Value)
  538. end
  539. })
  540.  
  541. Tab2:AddButton({
  542. Name = "Auto Stole Fruits",
  543. Callback = function(Value)
  544. if Value then
  545. OrionLib:MakeNotification({
  546. Name = "Wrong Charater",
  547. Content = "oops. you are not a premium!",
  548. Image = "rbxassetid://4483345998",
  549. Time = 5
  550. })
  551. end
  552. end
  553. })
  554.  
  555. Tab3:AddDropdown({
  556. Name = "sell Dropdown",
  557. Default = "1",
  558. Options = {"Carrot", "Bamboo", "stawberry", "blueberry", "tomato seed", "orange tuilp", "corn seed", "daffodil", "walermelon", "pumpkin", "apple", "coconut", "cactus", "dragon fruits", "mango", "grape", "mushroon", "pepper", "cacao"},
  559. Callback = function(Value)
  560. sell(Value)
  561. end
  562. })
  563.  
  564. Tab3:AddButton({
  565. Name = "Auto Sell",
  566. Callback = function(Value)
  567. sell(Value)
  568. end
  569. })
  570.  
  571. Tab3:AddButton({
  572. Name = "Auto Sell all",
  573. Callback = function(Value)
  574. sell(Value)
  575. end
  576. })
  577.  
  578. Tab3:AddLabel()
  579.  
  580. Tab3:AddDropdown({
  581. Name = "seed Dropdown",
  582. Default = "1",
  583. Options = {"Carrot", "Bamboo", "stawberry", "blueberry", "tomato seed", "orange tuilp", "corn seed", "daffodil", "walermelon", "pumpkin", "apple", "coconut", "cactus", "dragon fruits", "mango", "grape", "mushroon", "pepper", "cacao"},
  584. Callback = function(Value)
  585. sell(Value)
  586. end
  587. })
  588.  
  589. Tab3:AddButton({
  590. Name = "Auto seeds",
  591. Callback = function(Value)
  592. sell(Value)
  593. end
  594. })
  595.  
  596. Tab3:AddButton({
  597. Name = "Auto seeds all",
  598. Callback = function(Value)
  599. sell(Value)
  600. end
  601. })
  602.  
  603. Tab3:AddLabel()
  604.  
  605. Tab3:AddToggle({
  606. Name = "Buy One Seeds",
  607. Default = false,
  608. Callback = function(Value)
  609. print(Value)
  610. end
  611. })
  612.  
  613. Tab3:AddToggle({
  614. Name = "Buy One Sell",
  615. Default = false,
  616. Callback = function(Value)
  617. print(Value)
  618. end
  619. })
  620.  
  621. Tab4:AddSlider({
  622. Name = "walkspeed",
  623. Min = 0,
  624. Max = 500,
  625. Default = 16,
  626. Color = Color3.fromRGB(0,255,255),
  627. Increment = 1,
  628. ValueName = "walkspeed",
  629. Callback = function(Value)
  630. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Value
  631. end
  632. })
  633.  
  634. Tab4:AddSlider({
  635. Name = "jumppower",
  636. Min = 0,
  637. Max = 500,
  638. Default = 16,
  639. Color = Color3.fromRGB(0,255,255),
  640. Increment = 1,
  641. ValueName = "jumppower",
  642. Callback = function(Value)
  643. local plr = game.Players.LocalPlayer
  644. local char = plr.Character
  645.  
  646. char.Humanoid.JumpPower = Value
  647. end
  648. })
  649.  
  650. Tab5:AddToggle({
  651. Name = "Leave",
  652. Default = false,
  653. Callback = function(Value)
  654. if Value then
  655. OrionLib:Destroy()
  656. end
  657. end
  658. })
  659.  
  660.  
  661.  
Advertisement
Add Comment
Please, Sign In to add comment