- getgenv().AutoFarm = true
- local Time = 5 -- Seconds (Start [Time ÷ 2] -- > End [Time ÷ 2] -- > Start)
-
- -- [[ Script ]] --
-
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local Amount = 0
-
- local function NewPart(Position)
- local Part = Instance.new("Part")
- Part.Anchored = true
- Part.Size = Vector3.new(0.25, 0.25, 0.25)
- Part.Position = Position
- Part.Transparency = 1
- Part.CanCollide = false
- Part.Parent = workspace
-
- return Part
- end
-
- local function NewTween(StartPosition, EndPosition, TravelTime)
- local Tween = game:GetService("TweenService"):Create(StartPosition, TweenInfo.new(TravelTime, Enum.EasingStyle.Linear), {
- CFrame = CFrame.new(EndPosition)
- })
-
- return Tween
- end
-
- local function NoClip()
- for _, v in ipairs(LocalPlayer.Character:GetDescendants()) do
- if v:IsA("BasePart") and v.CanCollide == true then
- v.CanCollide = false
- end
- end
- end
-
- local Start = NewPart(Vector3.new(12, 1.75, 96))
- local End = NewPart(Vector3.new(1016, 1005, 96))
-
- game:GetService("RunService").Stepped:Connect(NoClip)
-
- while getgenv().AutoFarm do
-
- local StartTween = NewTween(LocalPlayer.Character.HumanoidRootPart, Start.Position, Time / 2)
- StartTween:Play()
- StartTween.Completed:Wait()
-
- local EndTween = NewTween(LocalPlayer.Character.HumanoidRootPart, End.Position, Time / 2)
-
- EndTween:Play()
- EndTween.Completed:Wait()
- Amount = Amount + 1
- print("Finished", Amount,"times")
-
- end