Advertisement
gluxiisbad123

dsdssddssd

Aug 6th, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.27 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Bakery Simulator")
  3. local b = w:CreateFolder("AutoFarm")
  4. local e = w:CreateFolder("Mix")
  5. local u = w:CreateFolder("Credits")
  6.  
  7. b:Toggle("Collect Ingredient",function(bool)
  8. shared.toggle = bool
  9. CollectIngredient = bool
  10. end)
  11.  
  12. b:Toggle("Place Ingredients",function(bool)
  13. shared.toggle = bool
  14. PlaceIngredients = bool
  15. end)
  16.  
  17. b:Toggle("Take Food",function(bool)
  18. shared.toggle = bool
  19. TakeFood = bool
  20. end)
  21.  
  22. b:Toggle("Sell",function(bool)
  23. shared.toggle = bool
  24. Sell = bool
  25. end)
  26.  
  27. e:Toggle("AntiAfk",function(bool)
  28. shared.toggle = bool
  29. AntiAfk = bool
  30. end)
  31.  
  32. --Credits
  33. u:Button("maxgat5#8395",function()
  34. setclipboard("maxgat5#8395")
  35. end)
  36.  
  37. u:Button("Discord Server",function()
  38. setclipboard("https://discord.gg/K4txdRSVfq")
  39. end)
  40.  
  41. heheboi = {"https://youtu.be/dQw4w9WgXcQ"}
  42. for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  43. if v.ClassName == "TextLabel" then
  44. if v.Text == game.Players.LocalPlayer.DisplayName.."'s Bakery" then
  45. heheboi[1] = v.Text
  46. end
  47. end
  48. end
  49. if heheboi[1] == "https://youtu.be/dQw4w9WgXcQ" then
  50. for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  51. if v.ClassName == "TextLabel" then
  52. if v.Text == "Claim Bakery" then
  53. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Parent.Parent.CFrame.Position + Vector3.new(0,0,0))
  54. end
  55. end
  56. end
  57. end
  58.  
  59. game:GetService('RunService').Stepped:connect(function()
  60. spawn(function()
  61. if CollectIngredient == true then
  62. string = game:GetService("Players").LocalPlayer.PlayerGui.Main.BottomXP.Bottom.Cart.Frame.TextLabel.Text
  63. a,b = string:match("(.+)/(.+)")
  64. if a ~= b then
  65. for i,v in pairs(game:GetService("Workspace").Ingredients:GetChildren()) do
  66. if a ~= b then
  67. if CollectIngredient == true then
  68. game:GetService("ReplicatedStorage").Remotes.TakeIngredient:FireServer(v)
  69. end
  70. end
  71. end
  72. end
  73. end
  74. end)
  75.  
  76. spawn(function()
  77. if Sell == true then
  78. if game.Players.LocalPlayer.Character:FindFirstChild("Tray") then
  79. for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  80. if v.ClassName == "TextLabel" then
  81. if v.Text == game.Players.LocalPlayer.DisplayName.."'s Bakery" then
  82. for i,v1 in pairs(v.Parent.Parent.Parent.Shelf:GetDescendants()) do
  83. if v1.ClassName == "TouchTransmitter" then
  84. if Sell == true then
  85. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 0)
  86. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 1)
  87. end
  88. end
  89. end
  90. end
  91. end
  92. end
  93. end
  94. end
  95. end)
  96.  
  97. spawn(function()
  98. if AntiAfk == true then
  99. local bb=game:service'VirtualUser'
  100. bb:CaptureController()
  101. bb:ClickButton2(Vector2.new())
  102. end
  103. end)
  104. end)
  105.  
  106. while wait() do
  107. if PlaceIngredients == true then
  108. for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  109. if v.ClassName == "TextLabel" then
  110. if v.Text == game.Players.LocalPlayer.DisplayName.."'s Bakery" then
  111. for i,v1 in pairs(v.Parent.Parent.Parent.Ovens:GetDescendants()) do
  112. if v1.ClassName == "TouchTransmitter" then
  113. if PlaceIngredients == true then
  114. if string.find(v1.Parent.Parent.Screen.ContentsUI.Contents.Text,"/") then
  115. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
  116. game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 0
  117. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v1.Parent.CFrame.Position + Vector3.new(0,5,0))
  118. wait(1)
  119. game.Workspace.CurrentCamera.CFrame = CFrame.new(game.Workspace.CurrentCamera.CFrame.Position,v1.Parent.Position)
  120. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 0)
  121. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 1)
  122. wait(2)
  123. mouse1press() wait() mouse1release()
  124. wait(2)
  125. game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 18
  126. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
  127. else
  128. if v1.Parent.Parent.Screen.ContentsUI.Contents.Text == "Add Ingredients" then
  129. game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 0
  130. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
  131. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v1.Parent.CFrame.Position + Vector3.new(0,5,0))
  132. wait(1)
  133. game.Workspace.CurrentCamera.CFrame = CFrame.new(game.Workspace.CurrentCamera.CFrame.Position,v1.Parent.Position)
  134. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 0)
  135. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 1)
  136. wait(2)
  137. mouse1press() wait() mouse1release()
  138. wait(2)
  139. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
  140. game:GetService("Players").LocalPlayer.CameraMaxZoomDistance = 18
  141. end
  142. end
  143. end
  144. end
  145. end
  146. end
  147. end
  148. end
  149. end
  150.  
  151. if TakeFood == true then
  152. for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  153. if v.ClassName == "TextLabel" then
  154. if v.Text == game.Players.LocalPlayer.DisplayName.."'s Bakery" then
  155. for i,v1 in pairs(v.Parent.Parent.Parent.Ovens:GetDescendants()) do
  156. if v1.ClassName == "TouchTransmitter" then
  157. if TakeFood == true then
  158. if v1.Parent.Parent.Screen.ContentsUI.Contents.Text == "DONE" then
  159. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = true
  160. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v1.Parent.CFrame.Position + Vector3.new(0,0,0))
  161. wait(1)
  162. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 0)
  163. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v1.Parent, 1)
  164. wait(1)
  165. game.Players.LocalPlayer.Character.PrimaryPart.Anchored = false
  166. end
  167. end
  168. end
  169. end
  170. end
  171. end
  172. end
  173. end
  174. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement