1. _G.Condition = true -- true turns it on, false turns it off
  2. while _G.Condition == true do
  3. -- Get the "FruitSpawn" object from the Workspace
  4. local fruitSpawn = game.Workspace:FindFirstChild("FruitSpawn")
  5. if fruitSpawn then
  6. -- Get the "SpawnedDF" object from the "FruitSpawn" object
  7. local spawnedDF = fruitSpawn:FindFirstChild("SpawnedDF")
  8. if spawnedDF then
  9. -- Get all the child objects of the "SpawnedDF" object
  10. local fruits = spawnedDF:GetChildren()
  11. -- Loop through all the child objects
  12. for i, fruit in ipairs(fruits) do
  13. -- Check if the child object has a "Handle" part
  14. local handle = fruit:FindFirstChild("Handle")
  15. if handle then
  16. -- Teleport to the position of the "Handle" part
  17. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(handle.CFrame)
  18. end
  19. end
  20. end
  21. end
  22. wait()
  23. end