Advertisement
0lf3_

Bloxburg Auto Farm

Dec 31st, 2021
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1. repeat wait() until game:IsLoaded();
  2.  
  3. -- Define variables
  4.  
  5. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/LegoHacks/Utilities/main/UI.lua"))();
  6.  
  7. local workspace = game:GetService("Workspace");
  8. local replicatedStorage = game:GetService("ReplicatedStorage");
  9. local tweenService = game:GetService("TweenService");
  10. local players = game:GetService("Players");
  11. local client = players.LocalPlayer;
  12.  
  13. -- Main script
  14.  
  15. local stats = replicatedStorage.Stats[client.Name];
  16. local dataManager = require(replicatedStorage.Modules.DataManager);
  17. local jobManager = require(client.PlayerGui.MainGUI.Scripts.JobManager);
  18.  
  19. local function fireServer(data)
  20. local oldI = getfenv(dataManager.FireServer).i;
  21. getfenv(dataManager.FireServer).i = function() end; --> Get around their shit "security"
  22. dataManager:FireServer(data);
  23. getfenv(dataManager.FireServer).i = oldI; --> Restore original function
  24. end;
  25.  
  26. local function getOrder(customer)
  27. if (not customer or (customer and not customer:FindFirstChild("Order"))) then return end;
  28.  
  29. if (stats.Job.Value == "StylezHairdresser") then
  30. local style = customer.Order:WaitForChild("Style").Value;
  31. local colour = customer.Order:WaitForChild("Color").Value;
  32.  
  33. return {style, colour};
  34. elseif (stats.Job.Value == "BloxyBurgersCashier") then
  35. local burger = customer.Order:WaitForChild("Burger").Value;
  36. local fries = customer.Order:WaitForChild("Fries").Value;
  37. local cola = customer.Order:WaitForChild("Cola").Value;
  38.  
  39. return {burger, fries, cola};
  40. end;
  41. end;
  42.  
  43. local bloxburg = library:CreateWindow("Bloxburg");
  44.  
  45. bloxburg:AddToggle({
  46. text = "Stylez Hairdresser";
  47. flag = "hairdresser";
  48. callback = function(enabled)
  49. if (not enabled) then return end;
  50.  
  51. if (stats.Job.Value ~= "StylezHairdresser") then
  52. jobManager:GoToWork("StylezHairdresser"); --> TP to job
  53. end;
  54.  
  55. repeat wait() until stats.Job.Value == "StylezHairdresser";
  56. tweenService:Create(client.Character.HumanoidRootPart, TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = CFrame.new(868.464783, 13.6776829, 174.983795, -0.999945581, -6.58446098e-08, -0.0104347449, -6.6522297e-08, 1, 6.45977494e-08, 0.0104347449, 6.52883756e-08, -0.999945581)}):Play();
  57.  
  58. while library.flags.hairdresser do
  59. local workstations = workspace.Environment.Locations.StylezHairStudio.HairdresserWorkstations;
  60. for i, v in next, workstations:GetChildren() do
  61. if (v.Occupied.Value) then
  62. fireServer({
  63. Type = "FinishOrder";
  64. Workstation = v;
  65. Order = getOrder(v.Occupied.Value);
  66. });
  67. end;
  68. end;
  69. wait();
  70. end;
  71. end;
  72. });
  73.  
  74. bloxburg:AddToggle({
  75. text = "Bloxy Burgers Cashier";
  76. flag = "cashier";
  77. callback = function(enabled)
  78. if (not enabled) then return end;
  79.  
  80. if (stats.Job.Value ~= "BloxyBurgersCashier") then
  81. jobManager:GoToWork("BloxyBurgersCashier"); --> TP to job
  82. end;
  83.  
  84. repeat wait() until stats.Job.Value == "BloxyBurgersCashier";
  85. tweenService:Create(client.Character.HumanoidRootPart, TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = CFrame.new(825.076355, 13.6776829, 276.091309, 0.0133343497, -5.09454665e-08, -0.999910772, 7.34347916e-09, 1, -5.08520621e-08, 0.999910772, -6.66474698e-09, 0.0133343497)}):Play();
  86.  
  87. while library.flags.cashier do
  88. local workstations = workspace.Environment.Locations.BloxyBurgers.CashierWorkstations;
  89. for i, v in next, workstations:GetChildren() do
  90. if (v.Occupied.Value) then
  91. fireServer({
  92. Type = "FinishOrder";
  93. Workstation = v;
  94. Order = getOrder(v.Occupied.Value);
  95. });
  96. end;
  97. end;
  98. wait();
  99. end;
  100. end;
  101. });
  102.  
  103. -- Load library
  104.  
  105. library:Init();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement