Roblox Laundry Simulator Autofarm Script

Roblox Laundry Simulator Autofarm Script

Script by UnknownDruid

getgenv().on = true -- autofarm toggle

local Unload = game:GetService("ReplicatedStorage").Events.UnloadWashingMachine
local Load = game:GetService("ReplicatedStorage").Events.LoadWashingMachine
local Drop = game:GetService("ReplicatedStorage").Events.DropClothesInChute
local Grab = game:GetService("ReplicatedStorage").Events.GrabClothing

local function getPlot()
   for i,v in pairs (game.Workspace.Plots:GetChildren()) do
       if v.Owner.Value == game.Players.LocalPlayer then
           return v
       end
   end
end

while wait(.1) and getgenv().on do
   -- Clothes from people
   for i,v in pairs (game.Workspace.Debris.Clothing:GetChildren()) do
       if v:FindFirstChild('SpecialTag') ~= nil then
           Grab:FireServer(v)
       else
           wait(.01)
           Grab:FireServer(v)
       end
   end
   -- Clothes from crates
   for i,v in pairs (game.Workspace.Debris.Crates:GetChildren()) do
           Grab:FireServer(v)
       end
   -- Load and unload machines
   for i,v in pairs (getPlot().WashingMachines:GetChildren()) do
       Load:FireServer(v)
       Unload:FireServer(v)
   end
   -- Drop off washed clothes
   Drop:FireServer()
end
%d bloggers like this: