1. getgenv().AutoFarm = true
  2. local Time = 5 -- Seconds (Start [Time ÷ 2] -- > End [Time ÷ 2] -- > Start)
  3. -- [[ Script ]] --
  4. local LocalPlayer = game:GetService("Players").LocalPlayer
  5. local Amount = 0
  6. local function NewPart(Position)
  7. local Part = Instance.new("Part")
  8. Part.Anchored = true
  9. Part.Size = Vector3.new(0.25, 0.25, 0.25)
  10. Part.Position = Position
  11. Part.Transparency = 1
  12. Part.CanCollide = false
  13. Part.Parent = workspace
  14. return Part
  15. end
  16. local function NewTween(StartPosition, EndPosition, TravelTime)
  17. local Tween = game:GetService("TweenService"):Create(StartPosition, TweenInfo.new(TravelTime, Enum.EasingStyle.Linear), {
  18. CFrame = CFrame.new(EndPosition)
  19. })
  20. return Tween
  21. end
  22. local function NoClip()
  23. for _, v in ipairs(LocalPlayer.Character:GetDescendants()) do
  24. if v:IsA("BasePart") and v.CanCollide == true then
  25. v.CanCollide = false
  26. end
  27. end
  28. end
  29. local Start = NewPart(Vector3.new(12, 1.75, 96))
  30. local End = NewPart(Vector3.new(1016, 1005, 96))
  31. game:GetService("RunService").Stepped:Connect(NoClip)
  32. while getgenv().AutoFarm do
  33. local StartTween = NewTween(LocalPlayer.Character.HumanoidRootPart, Start.Position, Time / 2)
  34. StartTween:Play()
  35. StartTween.Completed:Wait()
  36. local EndTween = NewTween(LocalPlayer.Character.HumanoidRootPart, End.Position, Time / 2)
  37. EndTween:Play()
  38. EndTween.Completed:Wait()
  39. Amount = Amount + 1
  40. print("Finished", Amount,"times")
  41. end