MrShadowDev

Bloxburg Autofarm Hairdresser & More Features!

Nov 28th, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.52 KB | Gaming | 0 0
  1. Suscribe to MrShadow: https://bit.ly/mrshadowyt
  2.  
  3. -- MrShadow
  4. -- Version: 2.82
  5. -- Instances:
  6. local BloxBurgGUI = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local ImageLabel = Instance.new("ImageLabel")
  9. local title = Instance.new("TextLabel")
  10. local credit = Instance.new("TextLabel")
  11. local howto = Instance.new("TextLabel")
  12. local close = Instance.new("TextButton")
  13. local start = Instance.new("TextButton")
  14. --Properties:
  15. BloxBurgGUI.Name = "BloxBurgGUI"
  16. BloxBurgGUI.Parent = game.CoreGui
  17.  
  18. Frame.Parent = BloxBurgGUI
  19. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  20. Frame.Position = UDim2.new(0.613021195, 0, 0.401639342, 0)
  21. Frame.Size = UDim2.new(0, 419, 0, 380)
  22.  
  23. ImageLabel.Parent = Frame
  24. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  25. ImageLabel.Position = UDim2.new(0.00724332687, 0, -0.00167280436, 0)
  26. ImageLabel.Size = UDim2.new(0, 415, 0, 380)
  27. ImageLabel.Image = "rbxassetid://1794652238"
  28.  
  29. title.Name = "title"
  30. title.Parent = Frame
  31. title.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  32. title.BackgroundTransparency = 0.40000000596046
  33. title.Position = UDim2.new(0.0238661785, 0, 0.0237466805, 0)
  34. title.Size = UDim2.new(0, 393, 0, 65)
  35. title.Font = Enum.Font.SourceSans
  36. title.Text = "BloxBurg"
  37. title.TextColor3 = Color3.new(0, 0.866667, 1)
  38. title.TextSize = 14
  39.  
  40. credit.Name = "credit"
  41. credit.Parent = Frame
  42. credit.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  43. credit.BackgroundTransparency = 0.40000000596046
  44. credit.Position = UDim2.new(0.0190930795, 0, 0.918205798, 0)
  45. credit.Size = UDim2.new(0, 396, 0, 25)
  46. credit.Font = Enum.Font.SourceSans
  47. credit.Text = "Made By Mikwbm"
  48. credit.TextColor3 = Color3.new(0, 0.866667, 1)
  49. credit.TextSize = 14
  50.  
  51. howto.Name = "howto"
  52. howto.Parent = Frame
  53. howto.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
  54. howto.BackgroundTransparency = 0.75
  55. howto.Position = UDim2.new(0.0352112688, 0, 0.488188982, 0)
  56. howto.Size = UDim2.new(0, 388, 0, 153)
  57. howto.Font = Enum.Font.SourceSans
  58. howto.Text = "1. Press The \"Press Me\" Button 2. Go to hairdresser job 3. complete a order 4. After you complete one order it will start doin it automaticly 5. Watch youtube and sub to pewdiepie while using afk script"
  59. howto.TextColor3 = Color3.new(0, 0.317647, 1)
  60. howto.TextSize = 14
  61. howto.TextWrapped = true
  62.  
  63. close.Name = "close"
  64. close.Parent = Frame
  65. close.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  66. close.Position = UDim2.new(0.89498806, 0, -0.00263157906, 0)
  67. close.Size = UDim2.new(0, 44, 0, 42)
  68. close.Font = Enum.Font.SourceSans
  69. close.Text = "X"
  70. close.TextColor3 = Color3.new(0.0156863, 1, 0)
  71. close.TextSize = 14
  72. close.MouseButton1Click:connect(function()
  73.     Frame.Visible = false
  74. end)
  75.  
  76.  
  77.  
  78. start.Name = "start"
  79. start.Parent = Frame
  80. start.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  81. start.BackgroundTransparency = 0.44999998807907
  82. start.Position = UDim2.new(0.0512017608, 0, 0.248551726, 0)
  83. start.Size = UDim2.new(0, 381, 0, 63)
  84. start.Font = Enum.Font.SourceSans
  85. start.Text = "Press Me"
  86. start.TextColor3 = Color3.new(0.215686, 1, 0)
  87. start.TextSize = 14
  88. start.MouseButton1Click:connect(function()
  89.     -- Variables --
  90. local remote = nil
  91. local orderInc = 0
  92. local workstationTable = {}
  93.  
  94. -- Metatable --
  95. function setupMetatable()
  96.     warn("[?] Setting up the Metamethods.")
  97.  
  98.     -- Metatable and Metamethods --
  99.     local metatable = getrawmetatable(game)
  100.     local backupNamecall = metatable.__namecall
  101.  
  102.     -- Make metatable writeable --
  103.     local setreadonly = make_writeable or setreadonly
  104.     setreadonly(metatable, false)
  105.  
  106.     -- Overwrite __namecall metamethod --
  107.     metatable.__namecall = function(...)
  108.         local args = {...}
  109.         if(args[#args] == "FireServer") then
  110.             if(args[2] and type(args[2]) == "table" and args[2]["Order"] and not workstationTable[args[2]["Workstation"]]) then
  111.                 warn("[!] Remote and Workstation have been found.")
  112.                 remote = args[1]
  113.  
  114.                 doWork(args[2]["Workstation"])
  115.             end
  116.         end
  117.         return backupNamecall(...)
  118.     end
  119. end
  120.  
  121. -- Get Order --
  122. function getOrder(workstation)
  123.     local orderValue = workstation.Occupied.Value:WaitForChild("Order")
  124.  
  125.     return {
  126.         orderValue.Style.Value,
  127.         orderValue.Color.Value
  128.     }
  129. end
  130.  
  131. -- Main --
  132. warn("[?] Welcome to Hairdressers Farm Script!")
  133. warn("[?] By MrShadow")
  134. warn("[-] Go to work at the Hairdressers.")
  135. warn("[-] Complete an order.")
  136. warn("[-] Magic, it will now complete orders.")
  137. setupMetatable()
  138.  
  139. function doWork(workstation)
  140.     local workEvent = nil
  141.     local inUseEvent = nil
  142.     workstationTable[workstation] = true
  143.  
  144.     workEvent = workstation.Occupied.Changed:Connect(function(value)
  145.         if(value == nil) then return end
  146.  
  147.         local order = getOrder(workstation)
  148.         remote:FireServer({
  149.             Type = "FinishHair",
  150.             Workstation = workstation,
  151.             Order = order
  152.         })
  153.  
  154.         orderInc = orderInc + 1
  155.         local date = os.date("*t", now)
  156.         warn("[!] Finished Order => " .. orderInc .. " => " .. date["hour"] .. ":" .. date["min"])
  157.     end)
  158.  
  159.     inUseEvent = workstation.InUse.Changed:Connect(function(value)
  160.         if(value ~= game:GetService("Players").LocalPlayer and workEvent ~= nil) then
  161.             warn("[?] You have changed your workstation, stopping old workEvent and resetting metamethod.")
  162.             workstationTable = {}
  163.             workEvent:Disconnect()
  164.             inUseEvent:Disconnect()
  165.         end
  166.     end)
  167. end
  168. end)
  169. -- Scripts:
Add Comment
Please, Sign In to add comment