Advertisement
CesarTheGamerScripts

Bloxburg Hairdresser and BloxBurger Script (OP) WORKING

Sep 26th, 2021
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.49 KB | None | 0 0
  1. do
  2. BloxburgGUI = Instance.new("ScreenGui")
  3. syn.protect_gui(BloxburgGUI)
  4. Main = Instance.new("Frame")
  5. TextLabel = Instance.new("TextLabel")
  6. Main_2 = Instance.new("Frame")
  7. CashierBloxyBurgersLabel = Instance.new("TextLabel")
  8. UIListLayout = Instance.new("UIListLayout")
  9. killguilabel = Instance.new("TextLabel")
  10. hideguilabel = Instance.new("TextLabel")
  11. HairdresserLabel = Instance.new("TextLabel")
  12. UICorner = Instance.new("UICorner")
  13.  
  14. --Properties:
  15.  
  16. BloxburgGUI.Name = "BloxburgGUI"
  17. BloxburgGUI.Parent = game.CoreGui
  18. BloxburgGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19.  
  20. Main.Name = "Main"
  21. Main.Parent = BloxburgGUI
  22. Main.BackgroundColor3 = Color3.fromRGB(29, 29, 29)
  23. Main.Position = UDim2.new(0.802118957, 0, 0.269811392, 0)
  24. Main.Size = UDim2.new(0, 182, 0, 201)
  25.  
  26. TextLabel.Parent = Main
  27. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  28. TextLabel.BackgroundTransparency = 1.000
  29. TextLabel.Position = UDim2.new(0, 0, 0.022580646, 0)
  30. TextLabel.Size = UDim2.new(0, 182, 0, 41)
  31. TextLabel.Font = Enum.Font.Ubuntu
  32. TextLabel.Text = "Bloxburg GUI"
  33. TextLabel.TextColor3 = Color3.fromRGB(128, 255, 0)
  34. TextLabel.TextSize = 18.000
  35.  
  36. Main_2.Name = "Main"
  37. Main_2.Parent = Main
  38. Main_2.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  39. Main_2.BackgroundTransparency = 0.990
  40. Main_2.LayoutOrder = 1
  41. Main_2.Position = UDim2.new(0, 0, 0.228668138, 0)
  42. Main_2.Size = UDim2.new(0, 184, 0, 155)
  43.  
  44. CashierBloxyBurgersLabel.Name = "CashierBloxyBurgers"
  45. CashierBloxyBurgersLabel.Parent = Main_2
  46. CashierBloxyBurgersLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  47. CashierBloxyBurgersLabel.BackgroundTransparency = 1.000
  48. CashierBloxyBurgersLabel.Position = UDim2.new(0, 0, 0.190045252, 0)
  49. CashierBloxyBurgersLabel.Size = UDim2.new(0, 184, 0, 35)
  50. CashierBloxyBurgersLabel.Font = Enum.Font.Ubuntu
  51. CashierBloxyBurgersLabel.Text = "Bloxy Burgers Cashier (Q)"
  52. CashierBloxyBurgersLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  53. CashierBloxyBurgersLabel.TextSize = 13.000
  54.  
  55. UIListLayout.Parent = Main_2
  56. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  57.  
  58. killguilabel.Name = "killguilabel"
  59. killguilabel.Parent = Main_2
  60. killguilabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  61. killguilabel.BackgroundTransparency = 1.000
  62. killguilabel.LayoutOrder = 100
  63. killguilabel.Position = UDim2.new(0, 0, 0.153008223, 0)
  64. killguilabel.Size = UDim2.new(0, 184, 0, 35)
  65. killguilabel.Font = Enum.Font.Ubuntu
  66. killguilabel.Text = "KILL GUI AND SCRIPTS (P)"
  67. killguilabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  68. killguilabel.TextSize = 13.000
  69.  
  70. hideguilabel.Name = "hideguilabel"
  71. hideguilabel.Parent = Main_2
  72. hideguilabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  73. hideguilabel.BackgroundTransparency = 1.000
  74. hideguilabel.LayoutOrder = 3
  75. hideguilabel.Position = UDim2.new(0, 0, 0.190045252, 0)
  76. hideguilabel.Rotation = 3.000
  77. hideguilabel.Size = UDim2.new(0, 184, 0, 35)
  78. hideguilabel.Font = Enum.Font.Ubuntu
  79. hideguilabel.Text = "Hide Gui (RShift)"
  80. hideguilabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  81. hideguilabel.TextSize = 13.000
  82.  
  83. HairdresserLabel.Name = "Hairdresser"
  84. HairdresserLabel.Parent = Main_2
  85. HairdresserLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  86. HairdresserLabel.BackgroundTransparency = 1.000
  87. HairdresserLabel.Position = UDim2.new(0, 0, 0.190045252, 0)
  88. HairdresserLabel.Size = UDim2.new(0, 184, 0, 35)
  89. HairdresserLabel.Font = Enum.Font.Ubuntu
  90. HairdresserLabel.Text = "Hairdresser (E)"
  91. HairdresserLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  92. HairdresserLabel.TextSize = 13.000
  93.  
  94. UICorner.CornerRadius = UDim.new(0.100000001, 8)
  95. UICorner.Parent = Main
  96. end
  97.  
  98. local a=game:GetService("UserInputService")local self={}local b=Main;local c=nil;local d=nil;local e=nil;local f=false;local function g(h)local i=h.Position-d;local j=UDim2.new(e.X.Scale,e.X.Offset+i.X,e.Y.Scale,e.Y.Offset+i.Y)b.Position=j;return j end;self.InputBegan=b.InputBegan:Connect(function(h)if kill then return end;if h.UserInputType==Enum.UserInputType.MouseButton1 or h.UserInputType==Enum.UserInputType.Touch then f=true;local k;k=h.Changed:Connect(function()if h.UserInputState==Enum.UserInputState.End and(self.Dragging or f)then self.Dragging=false;k:Disconnect()if self.DragEnded and not f then self.DragEnded()end;f=false end end)end end)self.InputChanged=b.InputChanged:Connect(function(h)if kill then return end;if h.UserInputType==Enum.UserInputType.MouseMovement or h.UserInputType==Enum.UserInputType.Touch then c=h end end)self.InputChanged2=a.InputChanged:Connect(function(h)if kill then return end;if f then f=false;if self.DragStarted then self.DragStarted()end;self.Dragging=true;d=h.Position;e=b.Position end;if h==c and self.Dragging then local j=g(h)if self.Dragged then self.Dragged(j)end end end)
  99.  
  100. local Colors = {Pink = -1,Green = -2,Blue = -3, Gray = 0,Blonde = 1,Brown = 2, Black = 3,Red = 4}
  101. local Hairstyles = {Sideswept = -1,Curly = -2,Long = -3,Bun = -4,Afro = 0,Charming = 1,Combed = 2,Headband = 3,Pigtails = 4,Messy = 5}
  102. local player = game:GetService"Players".LocalPlayer
  103. local character = player.Character
  104. local HairdresserWorkstations = game:GetService("Workspace").Environment.Locations.StylezHairStudio.HairdresserWorkstations
  105. local CashierWorkstations = game:GetService("Workspace").Environment.Locations.BloxyBurgers.CashierWorkstations
  106. local CAS = game:GetService("ContextActionService")
  107.  
  108. local CashierBloxyToggle = false
  109. local CashierBloxyRun = false
  110. local HairdresserToggle = false
  111. local HairdresserRun = false
  112.  
  113. local function SetLabelActive(label,bool)
  114. if bool then
  115. label.TextColor3 = Color3.new(0,255,0)
  116. else
  117. label.TextColor3 = Color3.new(255,0,0)
  118. end
  119. end
  120.  
  121. local function StopBloxyCashier() SetLabelActive(CashierBloxyBurgersLabel,false) CashierBloxyToggle = false CashierBloxyRun = false end
  122. local function StopHairdresser() SetLabelActive(HairdresserLabel,false) HairdresserToggle = false HairdresserRun = false end
  123.  
  124. local function GetPlayerWorkstation(workstations)
  125. local closestworkstation = nil
  126. local distance = math.huge
  127. for _,part in ipairs(workstations:GetChildren()) do
  128. local partdistance = (part.PrimaryPart.Position - character.PrimaryPart.Position).Magnitude
  129. if partdistance < distance then
  130. closestworkstation = part
  131. distance = partdistance
  132. end
  133. end
  134. return closestworkstation
  135. end
  136.  
  137. local function ClickButton(btn)
  138. local events = {"MouseButton1Up", "MouseButton1Down", "MouseButton1Click", "Activated"}
  139. for _,event in pairs(events) do
  140. for _,evnt in pairs(getconnections(btn[event])) do
  141. evnt:Fire()
  142. end
  143. end
  144. end
  145.  
  146. local function CompleteBloxyCashierOrder()
  147. local workstation = GetPlayerWorkstation(CashierWorkstations)
  148. if not workstation then warn("[S] CashierBloxy: Could not find workstation") StopBloxyCashier() return false end
  149. local gui = workstation.OrderDisplay.DisplayMain.CashierGUI.Frame
  150. local customer = workstation.Occupied.Value
  151. if customer then
  152. local order = customer.Order
  153. local burger = order.Burger.Value
  154. local fries = order.Fries.Value
  155. local cola = order.Cola.Value
  156. if burger then ClickButton(gui:FindFirstChild(burger)) end
  157. if fries then ClickButton(gui.Fries) end
  158. if cola then ClickButton(gui.Cola) end
  159. wait(0.1)
  160. ClickButton(gui.Done)
  161. local done = Instance.new("BoolValue",workstation.Occupied.Value)
  162. done.Name = "Done"
  163. end
  164. return true
  165. end
  166.  
  167. local function ToggleBloxyCashierAutoFarm()
  168. CashierBloxyToggle = not CashierBloxyToggle
  169. SetLabelActive(CashierBloxyBurgersLabel,CashierBloxyToggle)
  170. if CashierBloxyRun then return end
  171. CashierBloxyRun = true
  172. while CashierBloxyToggle do
  173. local workstation = GetPlayerWorkstation(CashierWorkstations) if not workstation then warn("[S] CashierBloxy: Could not find workstation") StopBloxyCashier() return end
  174. if workstation.Occupied.Value and workstation.Occupied.Value.Head:FindFirstChild("ChatBubble") and not workstation.Occupied.Value:FindFirstChild("Done") then
  175. if not CompleteBloxyCashierOrder() then StopBloxyCashier() return end
  176. end
  177. wait()
  178. end
  179. StopBloxyCashier()
  180. end
  181.  
  182.  
  183.  
  184.  
  185. local function CompleteHairdresserOrder()
  186. local workstation = GetPlayerWorkstation(HairdresserWorkstations)
  187. if not workstation then warn("[S] Hairdresser: Could not find workstation") StopHairdresser() return false end
  188. local customer = workstation.Occupied.Value
  189. if customer then
  190. local Style = customer.Order.Style.Value
  191. local Color = customer.Order.Color.Value
  192. if not Style or not Color then return false end
  193.  
  194. local SurfaceGui = workstation.Mirror.HairdresserGUI.Frame
  195. local StyleGUI = SurfaceGui:FindFirstChild"Style"
  196. local ColorGUI = SurfaceGui:FindFirstChild"Color"
  197. local DoneGUI = SurfaceGui.Done
  198.  
  199. local StyleChange = tonumber(Hairstyles[Style])
  200. local ColorChange = tonumber(Colors[Color])
  201. if StyleChange < 0 then
  202. while StyleChange < 0 do
  203. StyleChange = StyleChange+1
  204. ClickButton(StyleGUI.Back)
  205. wait(0.05)
  206. end
  207. elseif StyleChange > 0 then
  208. while StyleChange > 0 do
  209. StyleChange = StyleChange-1
  210. ClickButton(StyleGUI.Next)
  211. wait(0.05)
  212. end
  213. end
  214. if ColorChange < 0 then
  215. while ColorChange < 0 do
  216. ColorChange = ColorChange+1
  217. ClickButton(ColorGUI.Back)
  218. wait(0.05)
  219. end
  220. elseif ColorChange > 0 then
  221. while ColorChange > 0 do
  222. ColorChange = ColorChange-1
  223. ClickButton(ColorGUI.Next)
  224. wait(0.05)
  225. end
  226. end
  227. wait(0.1)
  228. ClickButton(DoneGUI)
  229. local done = Instance.new("BoolValue",workstation.Occupied.Value)
  230. done.Name = "Done"
  231. else return false end
  232. return true
  233. end
  234.  
  235. local function ToggleHairdresserAutoFarm()
  236. HairdresserToggle = not HairdresserToggle
  237. SetLabelActive(HairdresserLabel,HairdresserToggle)
  238. if HairdresserRun then return end
  239. HairdresserRun = true
  240. while HairdresserToggle do
  241. local workstation = GetPlayerWorkstation(HairdresserWorkstations) if not workstation then warn("[S] Hairdresser: Could not find workstation") StopHairdresser() return end
  242. if workstation.Occupied.Value and workstation.Occupied.Value.Head:FindFirstChild("ChatBubble") and (not workstation.Occupied.Value:FindFirstChild("Done")) then
  243. if not CompleteHairdresserOrder() then StopHairdresser() return end
  244. end
  245. wait()
  246. end
  247. StopHairdresser()
  248. end
  249.  
  250.  
  251. CAS:BindAction("ToggleGUI",function(_,state,_) if state~=Enum.UserInputState.End then return end BloxburgGUI.Enabled = not BloxburgGUI.Enabled end,false,Enum.KeyCode.RightShift)
  252. CAS:BindAction("ToggleBloxyCashierAutoFarm",function(_,state,_) if state~=Enum.UserInputState.End then ToggleBloxyCashierAutoFarm() end end,false,Enum.KeyCode.Q)
  253. CAS:BindAction("ToggleHairdresserAutoFarm",function(_,state,_) if state~=Enum.UserInputState.End then ToggleHairdresserAutoFarm() end end,false,Enum.KeyCode.E)
  254. CAS:BindAction("Kill",function() BloxburgGUI:Destroy() CAS:UnbindAction("Kill") CAS:UnbindAction("ToggleGUI") CAS:UnbindAction("ToggleHairdresserAutoFarm") CAS:UnbindAction("ToggleBloxyCashierAutoFarm") StopHairdresser() StopBloxyCashier() end,false,Enum.KeyCode.P) syn.protect_gui(BloxburgGUI)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement