Autofarm
Key Required

Autofarm

Taxi Boss 🚖VertigoCoolVertigoCool 20.4K views 436 executesUpdated Apr 22, 2022
5.0/ 5(2 votes)
20100% Positive
Lua Script•161 lines (5790 chars)
local UI = loadstring(game:HttpGetAsync("https://pastebin.com/raw/QAwr1iuM"))()
local Window = UI:Window("TaxiBoss")
UI:Notification("Scrpt By:", "VertigoCool#6520", "Okay!")
local FarmingTab = Window:Tab("Farming")
FarmingTab:Toggle("Autofarm", false, function(arg)
	getgenv().Autofarm = arg
	local old = game:GetService("Players").LocalPlayer.variables.inMission.Value
	game:GetService("Players").LocalPlayer.variables.inMission.Value = not old
	game:GetService("Players").LocalPlayer.variables.inMission.Value = old
end)

FarmingTab:Slider("Speed", 1, 200, 150, function(arg)
	getgenv().CarSettings.speed = arg
end)
FarmingTab:Slider("Distance", 100, 50000, 10000, function(arg)
	getgenv().Mag = arg
end)

FarmingTab:Button("Destroy Map Shit", function()
	game:GetService("Workspace").World.Buildings:Destroy()
	game:GetService("Workspace").World.Flora:Destroy()
	game:GetService("Workspace").World.Containers:Destroy()
	game:GetService("Workspace").World.Props:Destroy()
	game:GetService("Workspace").World.TrafficLights:Destroy()
	game:GetService("Workspace").World.Bridge:Destroy()
	game:GetService("Workspace").World.Industrial:Destroy()
	game:GetService("Workspace").World.Statue:Destroy()
	game:GetService("Workspace").World.WallSide:Destroy()
	game:GetService("Workspace").World.WallSide:Destroy()
	game:GetService("Workspace").World.TaxiCentral:Destroy()
	game:GetService("Workspace").Fences:Destroy()
end)

game:GetService("ProximityPromptService").PromptButtonHoldBegan:Connect(function(prompt)
	prompt.HoldDuration = 0
end)

getgenv().CarSettings = {speed = 150}

if getgenv().Mag == 0 or getgenv().Mag == nil then
	getgenv().Mag = 10000
end

function GetCar()
	for i,v in pairs(game:GetService("Workspace").Vehicles:GetDescendants()) do
		if v.ClassName == "ObjectValue" and v.Name == "Player" and v.Value == game.Players.LocalPlayer then
			return v.Parent.Parent
		end
	end
end

function FormatNumber(e)
    if string.find(tonumber(e),".") then
	    return string.split(tonumber(e), ".")[1]
	else --Whole number
		return tonumber(e)
	end
end

function GetCustomerCframe()
	if game:GetService("Players").LocalPlayer.variables.inMission.Value == false then
		for i,v in pairs(game:GetService("Workspace").NewCustomers:GetDescendants()) do
			if v.Name == "PromptPart" and (GetCar().PrimaryPart.Position - v.Position).Magnitude <= getgenv().Mag then
				if v.Name == "PromptPart" and tonumber(GetCar().FAKE.PLATE.SurfaceGui.Rating.Text) then
				    local carNum = FormatNumber(tonumber(GetCar().FAKE.PLATE.SurfaceGui.Rating.Text))
				    local customerNum = FormatNumber(tonumber(v.Rating.Frame.Rating.Text))
				    if customerNum == carNum then
				        return v.CFrame
				    elseif customerNum <= carNum then
				        return v.CFrame
				    else
				        local goal = CFrame.new(1674, 6, 12)
                    	local Car = GetCar() 
                        Car:SetPrimaryPartCFrame(goal)
				    end
				end
			end
		end
	end
end

function GetCustomer()
	local CusCF = GetCustomerCframe()
	if CusCF == nil then
	    repeat task.wait()
	       CusCF = GetCustomerCframe()  
	    until CusCF ~= nil
	end
	local goal = CusCF + Vector3.new(math.random(0, 1.5),1,math.random(0, 1.5))
	local Car = GetCar() 
    Car:SetPrimaryPartCFrame(goal)
	task.wait(.15)
	local virtualUser = game:GetService('VirtualUser')
	virtualUser:CaptureController()
	virtualUser:SetKeyDown('0x72')
	wait(.1)
	virtualUser:SetKeyUp('0x72')
end

function GotoDestination()
	wait(.45)
	for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
	    if v:IsA("Part") then
	       v.CanCollide = false 
	    end
	end
	local goal = game:GetService("Workspace").ParkingMarkers.destinationPart.CFrame + Vector3.new(math.random(0, 1.2), 1, math.random(0, 1.2))
	local Car = GetCar() 

	local CFrameValue = Instance.new("CFrameValue")
	CFrameValue.Value = Car:GetPrimaryPartCFrame()
	CFrameValue:GetPropertyChangedSignal("Value"):connect(function()
        Car:SetPrimaryPartCFrame(CFrameValue.Value)
		local virtualUser = game:GetService('VirtualUser')
		virtualUser:CaptureController()
		virtualUser:SetKeyDown('0x130')
		wait(.3)
		virtualUser:SetKeyUp('0x130')
    end)

	local dist = (Car.PrimaryPart.Position - goal.Position).Magnitude
	getgenv().CarSettings.tweenspeed = dist/tonumber(getgenv().CarSettings.speed)
	local info = TweenInfo.new(getgenv().CarSettings.tweenspeed, Enum.EasingStyle.Linear)
	local info2 = TweenInfo.new(.25, Enum.EasingStyle.Linear)
	local tween = game:GetService("TweenService"):Create(CFrameValue, info, {Value = goal})
    tween:Play()
	local tween2 = game:GetService("TweenService"):Create(CFrameValue, info2, {Value = goal})
	tween.Completed:connect(function()
	   for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
    	    if v:IsA("Part") then
    	       v.CanCollide = true 
    	    end
    	end
		GetCar().PrimaryPart.Velocity = Vector3.new(0, 0, 0)
		tween2:Play()
	end)
	tween2.Completed:connect(function()
		CFrameValue:Destroy()
		GetCar().PrimaryPart.Velocity = Vector3.new(0, 0, 0)
	end)
end

game:GetService("Players").LocalPlayer.variables.inMission:GetPropertyChangedSignal("Value"):Connect(function()
    firesignal(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.MissionEnd.Frame.Close.Activated)
	if getgenv().Autofarm == true then
		if game:GetService("Players").LocalPlayer.variables.inMission.Value == false then
		    game:GetService("StarterGui"):SetCore("SendNotification",{
                Title = "Notification",
                Text = "Waiting 5s"
             })
			wait(5)
			GetCustomer()
			game:GetService("StarterGui"):SetCore("SendNotification",{
                Title = "Notification",
                Text = "Waiting 2s"
             })
			wait(2)
			GotoDestination()
		end
	end
end)

Features & Information

Updated [27/07/22] - made some slight improvements A few bugs, mostly works. this also wont get you kicked as often as others. Edit: added a wait so you dont get kicked as much Auto Collect Customer and put them in destination.
#TaxiBoss#OpenSoucre

Community Comments (4)

FantasticAwesomeFantasticAwesomeApr 22, 2022(edited)

Vouch, it works perfectly.

JoostKillsJoostKillsApr 22, 2022(edited)

vouch theres a lot of these scripts, but fake scripts

demokritos3170demokritos3170Apr 23, 2022(edited)

works but dont set the speed to the max

chingc53chingc53Apr 24, 2022(edited)

keep getting kick

More Scripts for Taxi Boss 🚖