Auto Farm Vehicle Simulator!!!
a guest Apr 24th, 2019 134 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- local waitTime = 3
- local hint = Instance.new('Hint', Workspace) hint.Text = "Kalem Auto Farm Na Keur 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 = Workspace.Vehicles:getChildren()
- for i=1,#vehicles do
- if vehicles[i]:findFirstChild'owner' then
- if vehicles[i].owner.Value == game:GetService'Players'.LocalPlayer.Name then -- Found your vehicle
- found = true --Setting found to true so loop breaks
- vehicle = vehicles[i] -- Declares vehicle variable to your vehicle
- vehStats = vehicle.Handling -- Declares vehStats variable to vehicle stats folder
- vehStats.MaxSpeed.Value = 1000
- vehStats.Torque.Value = 100000
- vehStats.SteeringRadiusConstant.Value = 120000000
- elseif vehicles[i + 1] == nil and not found then
- --Autorespawn would go here
- hint.Text = "Spawn Mobil Sia Langsung Asup Kana Mobil Sia!" --Your vehicle does not exist in the Workspace
- vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
- function farm() --This is where the magic happens :)
- hint.Text = "Aditya Bima Nugraha Gans FB : AdityaMpuss"
- while wait(waitTime) do --Waits x seconds before resetting car
- game:GetService'VirtualUser':SetKeyUp("w") --Resets W key
- game:GetService'VirtualUser':SetKeyDown("w") --Presses W key to go forward
- while go do
- if not pcall(farm()) then
- found = false
RAW Paste Data