local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local rootPart = character:WaitForChild("HumanoidRootPart") local teleportPositions = { Vector3.new(-61.26, 69.78, 1273.84), Vector3.new(-48.86, 85.36, 1441.15), Vector3.new(-46.04, 72.56, 2211.08), Vector3.new(-67.08, 72.74, 3726.19), Vector3.new(-55.31, 82.60, 4523.01), Vector3.new(-52.80, 116.90, 5937.94), Vector3.new(-62.71, 82.72, 6709.27), Vector3.new(-53.46, 94.83, 8241.62), Vector3.new(-56.53, -362.03, 9486.16), } local isToggled = false local originalGravity = workspace.Gravity local originalPosition = nil local teleportTask = nil local isMinimized = false local FLAG_NAME = "BABFT_AutoFarm_Executed" local playerGui = player:WaitForChild("PlayerGui") local existingFlag = playerGui:FindFirstChild(FLAG_NAME) if existingFlag then local popup = Instance.new("Frame") popup.Size = UDim2.new(0, 300, 0, 140) popup.Position = UDim2.new(0.5, -150, 0.5, -70) popup.BackgroundColor3 = Color3.fromRGB(50, 50, 50) popup.BorderSizePixel = 0 popup.ZIndex = 10 popup.Parent = playerGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 12) corner.Parent = popup local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 40) title.BackgroundTransparency = 1 title.Text = "This script are already executed!" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Font = Enum.Font.GothamBold title.TextSize = 16 title.Parent = popup local subtitle = Instance.new("TextLabel") subtitle.Size = UDim2.new(1, -20, 0, 40) subtitle.Position = UDim2.new(0, 10, 0, 35) subtitle.BackgroundTransparency = 1 subtitle.Text = "Do you want to do that anyways?" subtitle.TextColor3 = Color3.fromRGB(220, 220, 220) subtitle.Font = Enum.Font.Gotham subtitle.TextSize = 14 subtitle.Parent = popup local btnYeah = Instance.new("TextButton") btnYeah.Size = UDim2.new(0, 120, 0, 36) btnYeah.Position = UDim2.new(0, 20, 1, -56) btnYeah.BackgroundColor3 = Color3.fromRGB(0, 170, 0) btnYeah.Text = "Yeah bruh" btnYeah.TextColor3 = Color3.fromRGB(255, 255, 255) btnYeah.Font = Enum.Font.GothamBold btnYeah.TextSize = 14 btnYeah.Parent = popup local cornerYeah = Instance.new("UICorner") cornerYeah.CornerRadius = UDim.new(0, 8) cornerYeah.Parent = btnYeah local btnNo = Instance.new("TextButton") btnNo.Size = UDim2.new(0, 120, 0, 36) btnNo.Position = UDim2.new(1, -140, 1, -56) btnNo.BackgroundColor3 = Color3.fromRGB(170, 0, 0) btnNo.Text = "Nevermind" btnNo.TextColor3 = Color3.fromRGB(255, 255, 255) btnNo.Font = Enum.Font.GothamBold btnNo.TextSize = 14 btnNo.Parent = popup local cornerNo = Instance.new("UICorner") cornerNo.CornerRadius = UDim.new(0, 8) cornerNo.Parent = btnNo local allowExecution = false btnYeah.MouseButton1Click:Connect(function() allowExecution = true popup:Destroy() end) btnNo.MouseButton1Click:Connect(function() popup:Destroy() end) repeat task.wait() until allowExecution or not playerGui:FindFirstChild(popup.Name) if not allowExecution then return end end local flag = Instance.new("BoolValue") flag.Name = FLAG_NAME flag.Value = true flag.Parent = playerGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "AutoFarmGui" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 280, 0, 140) mainFrame.Position = UDim2.new(0.5, -140, 0.5, -70) mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = mainFrame local titleBar = Instance.new("Frame") titleBar.Size = UDim2.new(1, 0, 0, 30) titleBar.BackgroundColor3 = Color3.fromRGB(0, 120, 215) titleBar.BorderSizePixel = 0 titleBar.Parent = mainFrame local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 8) titleCorner.Parent = titleBar local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, -40, 1, 0) titleLabel.Position = UDim2.new(0, 10, 0, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "BABFT Auto Farm" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.Font = Enum.Font.GothamBold titleLabel.TextSize = 16 titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.Parent = titleBar local minimizeBtn = Instance.new("TextButton") minimizeBtn.Size = UDim2.new(0, 24, 0, 24) minimizeBtn.Position = UDim2.new(1, -30, 0, 3) minimizeBtn.BackgroundTransparency = 1 minimizeBtn.Text = "-" minimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255) minimizeBtn.Font = Enum.Font.GothamBold minimizeBtn.TextSize = 20 minimizeBtn.Parent = titleBar local contentFrame = Instance.new("Frame") contentFrame.Size = UDim2.new(1, -20, 1, -50) contentFrame.Position = UDim2.new(0, 10, 0, 40) contentFrame.BackgroundTransparency = 1 contentFrame.Parent = mainFrame local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(1, 0, 0, 40) toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) toggleButton.BorderSizePixel = 0 toggleButton.Text = "FLY TP: OFF" toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleButton.Font = Enum.Font.GothamBold toggleButton.TextSize = 16 toggleButton.Parent = contentFrame local buttonCorner = Instance.new("UICorner") buttonCorner.CornerRadius = UDim.new(0, 6) buttonCorner.Parent = toggleButton local function updateButton() if isToggled then toggleButton.Text = "FLY TP: ON" toggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) else toggleButton.Text = "FLY TP: OFF" toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) end end local function startTeleportSequence() if teleportTask then task.cancel(teleportTask) end teleportTask = task.spawn(function() while isToggled do for i = 1, #teleportPositions do if not isToggled or not rootPart or not rootPart.Parent then break end rootPart.CFrame = CFrame.new(teleportPositions[i]) task.wait(2) end end end) end local function activateTeleport() if isToggled then return end character = player.Character if not character then return end humanoid = character:FindFirstChild("Humanoid") rootPart = character:FindFirstChild("HumanoidRootPart") if not humanoid or not rootPart then return end isToggled = true originalPosition = rootPart.Position workspace.Gravity = 0 humanoid:ChangeState(Enum.HumanoidStateType.Physics) updateButton() startTeleportSequence() end local function deactivateTeleport() if not isToggled then return end isToggled = false if teleportTask then task.cancel(teleportTask) teleportTask = nil end workspace.Gravity = originalGravity if humanoid and humanoid.Parent then humanoid:ChangeState(Enum.HumanoidStateType.Running) end if rootPart and rootPart.Parent and originalPosition then rootPart.CFrame = CFrame.new(originalPosition) end updateButton() end toggleButton.MouseButton1Click:Connect(function() if isToggled then deactivateTeleport() else activateTeleport() end end) minimizeBtn.MouseButton1Click:Connect(function() isMinimized = not isMinimized if isMinimized then mainFrame.Size = UDim2.new(0, 280, 0, 30) contentFrame.Visible = false minimizeBtn.Text = "+" else mainFrame.Size = UDim2.new(0, 280, 0, 140) contentFrame.Visible = true minimizeBtn.Text = "-" end end) player.CharacterAdded:Connect(function(newChar) task.wait(1) character = newChar humanoid = character:WaitForChild("Humanoid") rootPart = character:WaitForChild("HumanoidRootPart") if isToggled then workspace.Gravity = 0 humanoid:ChangeState(Enum.HumanoidStateType.Physics) startTeleportSequence() end end) updateButton()