1. -- ______ ______ _______ _______ ________ ______ ______
  2. -- /_____/\ /_____/\ /______/\ /______/\ /_______/\/_____/\ /_____/\
  3. -- \:::_ \ \\:::_ \ \\::::__\/__\::::__\/__\__.::._\/\::::_\/_\::::_\/_
  4. -- \:(_) \ \\:\ \ \ \\:\ /____/\\:\ /____/\ \::\ \ \:\/___/\\:\/___/\
  5. -- \: ___\/ \:\ \ \ \\:\\_ _\/ \:\\_ _\/ _\::\ \__\::___\/_\_::._\:\
  6. -- \ \ \ \:\_\ \ \\:\_\ \ \ \:\_\ \ \ /__\::\__/\\:\____/\ /____\:\
  7. -- \_\/ \_____\/ \_____\/ \_____\/ \________\/ \_____\/ \_____\/
  8. --
  9. --
  10. --
  11. --
  12. --
  13. --
  14. -- Set the condition to true to turn it on or false to turn it off
  15. _G.Condition = true
  16. while _G.Condition == true do
  17. -- Rename the "Divine Yang Tree" to "XiaoRed" with an incrementing number
  18. for k, v in pairs(workspace.Areas["Demon Pelago"]:GetChildren()) do
  19. if v.Name == "Divine Yang Tree" then
  20. v.Name = "XiaoRed" .. k
  21. end
  22. end
  23. -- Harvest Divine Yang Fruit from each XiaoRed tree and wait 8 seconds before harvesting again
  24. for i = 2, 7 do
  25. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Areas["Demon Pelago"]["XiaoRed" .. i].Plant.CFrame
  26. wait(0.3)
  27. local args = {
  28. [1] = workspace.Areas:FindFirstChild("Demon Pelago")["XiaoRed" .. i].Plant,
  29. [2] = "Divine Yang Fruit"
  30. }
  31. game:GetService("ReplicatedStorage").Harvest.Harvest:FireServer(unpack(args))
  32. wait(8)
  33. end
  34. for k, v in pairs(workspace.Areas["Demon Pelago"]:GetChildren()) do
  35. if v.Name == "Divine Yang Tree" then
  36. v.Name = "XiaoRed" .. k
  37. end
  38. end
  39. -- Wait before starting the loop again
  40. wait()
  41. end