Autofarm script for gas station simulator

Created by hienfan9

Instructions:
Click L to toggle on and off
Features:
  • Auto Farm
  • Auto Cashier
  • Auto Fuel
  • Auto Refuel
  • Auto Clean

 

Script:

 

--variables
--TOGGLE ON L
local me = game.Players.LocalPlayer
local tf = false
local key = Enum.KeyCode.L

--functions
function stamina()
    if me.PlayerGui.GameUI.Stamina.Bar.AbsoluteSize.X < 60 then
        me.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Ceilings.Sofa.Seat.CFrame
        wait(10)
        me.Character.Humanoid.Sit = false -- unseat
    end
end

function clean()
    for _,v in pairs(game:GetService("Workspace"):GetChildren()) do
         if v:FindFirstChild'Clean' then
             game:GetService("ReplicatedStorage").Remote:FireServer('Clean', v.Clean)
        end
    end
end

--client sided button trigger
game:GetService("ProximityPromptService").PromptShown:Connect(function(prompt)
    if prompt.Name == 'Scan' and tf then --check
        fireproximityprompt(prompt) --fire
    end
end)

--key input trigger
game:GetService("UserInputService").InputBegan:Connect(function(input, chating)
    if not chating and input.KeyCode == key then
        tf = not tf
    end
end)

--yes
while wait(3) do
    if tf then
        clean()
        stamina()
        me.Character.HumanoidRootPart.CFrame = CFrame.new(1.46752572, 3, -6.53523779, 0.726744831, -4.74023416e-08, 0.68690753, 9.53963948e-08, 1, -3.19205924e-08, -0.68690753, 8.87266296e-08, 0.726744831)
    end
end
--TOGGLE ON L
--variables
local me = game.Players.localPlayer
local tf = false
local key = Enum.KeyCode.L

--functions
function refuel()
    for _,v in pairs(workspace:GetChildren()) do
        if string.sub(v.Name,1,4) == 'Car_' then
            if v:FindFirstChild'Lid' then
                if v.Lid:FindFirstChild'Refuel' then
                    me.Character.HumanoidRootPart.CFrame = v.Lid.CFrame wait(1)
                    for _,v2 in pairs(game:GetService("Workspace").Pumps:GetChildren()) do
                        if me:DistanceFromCharacter(v2.Screen.Position) < 9 then
                            game:GetService("ReplicatedStorage").Remote:FireServer("FuelCustomer", v, v2)
                            game:GetService("ReplicatedStorage").Remote:FireServer("BuyItem", "Syntin Petrol Co", 1, "Station") --buy fuel
                            break
                        end
                    end
                elseif v.Lid:FindFirstChild'FinishFuel' then
                    game:GetService("ReplicatedStorage").Remote:FireServer("FinishFuel", v, workspace.Pumps.Pump_Type1)
                end
            end
        end
    end
end

function stamina()
    if me.PlayerGui.GameUI.Stamina.Bar.AbsoluteSize.X < 60 then
        me.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Ceilings.Sofa.Seat.CFrame
        wait(10)
        me.Character.Humanoid.Sit = false -- unseat
    end
end

--key input trigger
game:GetService("UserInputService").InputBegan:Connect(function(input, chating)
    if not chating and input.KeyCode == key then
        tf = not tf
    end
end)

--yes
while wait(3) do
    if tf then
        refuel()
        stamina()
    end
end

 

 

Share This Article

Related Post

Fludex Hub | Anime Fighting Games (Shindo Life, Anime Flighting Simulator [.+])

Fludex Hub | Anime Fighting Games (Shindo Lif

Fledex Hub has insane bypassing modules for games like ...

Owl Hub (Updated)

Owl Hub was an powerful hub discontinued a year ago an...

Pet Simulator X | Pet Dupe

Pet Simulator X Pet Dupe is a powerful and leaked scri...

Leave a Comment

Generated by Feedzy