Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local remote = nil
- local orderInc = 0
- local workstationTable = {}
- function setupMetatable()
- warn("Setting up the AntiBan.")
- local metatable = getrawmetatable(game)
- local backupNamecall = metatable.__namecall
- local setreadonly = make_writeable or setreadonly
- setreadonly(metatable, false)
- metatable.__namecall = function(...)
- local args = {...}
- if(args[#args] == "FireServer") then
- if(args[2] and type(args[2]) == "table" and args[2]["Order"] and not workstationTable[args[2]["Workstation"]]) then
- warn("[!] Remote and Workstation have been found.")
- remote = args[1]
- doWork(args[2]["Workstation"])
- end
- end
- return backupNamecall(...)
- end
- end
- function getOrder(workstation)
- local orderValue = workstation.Occupied.Value:WaitForChild("Order")
- return {
- orderValue.Style.Value,
- orderValue.Color.Value
- }
- end
- warn("Welcome to Blocksburg AutoFarm.")
- warn("By JasonP#1205")
- warn("Go to work at the Hairdresser job.")
- warn("Complete 1-3 Orders (can be wrong).")
- warn("Then it should auto finish Order.")
- warn("This makes up to 600k per hour depending on your level.")
- setupMetatable()
- function doWork(workstation)
- local workEvent = nil
- local inUseEvent = nil
- workstationTable[workstation] = true
- workEvent = workstation.Occupied.Changed:Connect(function(value)
- if(value == nil) then return end
- local order = getOrder(workstation)
- remote:FireServer({
- Type = "FinishHair",
- Workstation = workstation,
- Order = order
- })
- orderInc = orderInc + 1
- local date = os.date("*t", now)
- warn("Finished Order => " .. orderInc .. " => " .. date["hour"] .. ":" .. date["min"])
- end)
- inUseEvent = workstation.InUse.Changed:Connect(function(value)
- if(value ~= game:GetService("Players").LocalPlayer and workEvent ~= nil) then
- warn("Did you change your workstation? Please wait while we Restart the script.")
- workstationTable = {}
- workEvent:Disconnect()
- inUseEvent:Disconnect()
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement