0% found this document useful (0 votes)
147 views1 page

Vehicle Simulator Autofarm Script

This document contains code for an automated money/miles farming script in Vehicle Simulator. It finds the player's vehicle, sets vehicle stats like speed and torque to high values, and teleports the vehicle to a highway. The script then presses the W key every few seconds to drive the vehicle forward and reset it, farming money and miles without player input.

Uploaded by

Djoko Martono
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views1 page

Vehicle Simulator Autofarm Script

This document contains code for an automated money/miles farming script in Vehicle Simulator. It finds the player's vehicle, sets vehicle stats like speed and torque to high values, and teleports the vehicle to a highway. The script then presses the W key every few seconds to drive the vehicle forward and reset it, farming money and miles without player input.

Uploaded by

Djoko Martono
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--[[

Fully automatic money/miles farm


TODO:
Add auto respawn vehicle
]]
local waitTime = 3 --This will be the time it takes (seconds) until your car
resets. See line 37
--Do not change anything below :)
local hint = [Link]('Hint', Workspace) [Link] = "Vehicle Simulator
Autofarm loading..."
local found = false
local go = true

function findVehicle() --Finds your vehicle


while not found do --Loops until your vehicle has been found
local vehicles = [Link]:getChildren()
for i=1,#vehicles do
if vehicles[i]:findFirstChild'owner' then
if vehicles[i].[Link] ==
game:GetService'Players'.[Link] then -- Found your vehicle
found = true --Setting found to true so loop breaks
vehicle = vehicles[i] -- Declares vehicle variable to your
vehicle
vehStats = [Link] -- Declares vehStats variable to
vehicle stats folder
[Link] = 800
[Link] = 100000
[Link] = 120000000
elseif vehicles[i + 1] == nil and not found then
--Autorespawn would go here
[Link] = "Please spawn and enter your vehicle!" --Your
vehicle does not exist in the Workspace
end
end
end
wait(1) --Waiting before checking again so we don't crash
end
wait(2) --We've found the car. Waiting so the car can be properly placed on the
highway
[Link] = [Link]
end

function farm() --This is where the magic happens :)


[Link] = "Finished loading! Autofarm initialized."
while wait(waitTime) do --Waits x seconds before resetting car
vehicle:SetPrimaryPartCFrame([Link](-2470,60,777)) --Teleports vehicle
to highway
game:GetService'VirtualUser':SetKeyUp("w") --Resets W key
game:GetService'VirtualUser':SetKeyDown("w") --Presses W key to go forward
end
end
findVehicle() --Calls the findVehicle function
while go do
if not pcall(farm()) then --Calls farm function & checks for errors
found = false --If it errors, it sets found to false and continues looking
for your vehicle.
findVehicle()
end
end

You might also like