SHARE
TWEET

BloxBurg Auto farm gui

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