Advertisement
jjsnappy

YouTube Simulator

Feb 3rd, 2022
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.87 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("YouTube Simulator")
  3. local b = w:CreateFolder("AutoFarm")
  4. local f = w:CreateFolder("AutoBuy")
  5. local e = w:CreateFolder("Mix")
  6. local u = w:CreateFolder("Credits")
  7.  
  8. b:Toggle("AutoClick",function(bool)
  9. shared.toggle = bool
  10. AutoClick = bool
  11. end)
  12.  
  13. b:Toggle("AutoEdit",function(bool)
  14. shared.toggle = bool
  15. AutoEdit = bool
  16. end)
  17.  
  18. f:Button("Camera Best",function()
  19. game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.sunburst.Visible = false
  20. Money = game:GetService("Players").LocalPlayer.Money.Value
  21. CamerasPrices = {}
  22. for i,v in pairs(game:GetService("Workspace").Cameras:GetChildren()) do
  23. if v.ClassName == "Model" then
  24. if v.colorPart.BrickColor == BrickColor.new('Persimmon') then
  25. fireclickdetector(v.colorPart.ClickDetector, 0)
  26. fireclickdetector(v.colorPart.ClickDetector, 1)
  27. wait(.5)
  28. a = string.gsub(game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.Frame.Buy.Price.Text,",","")
  29. if not table.find(CamerasPrices,a) then
  30. table.insert(CamerasPrices,a)
  31. end
  32. wait(.5)
  33. firesignal(game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.Frame.Close.MouseButton1Click)
  34. end
  35. end
  36. end
  37. local number = game:GetService("Players").LocalPlayer.Money.Value
  38. local closest = CamerasPrices[1]
  39. for i, currentNum in pairs(CamerasPrices) do
  40. local currentDiff, closestDiff = math.abs(currentNum - number), math.abs(closest - number)
  41. if currentDiff < closestDiff then
  42. closest = currentNum
  43. end
  44. end
  45. wait(1)
  46. for i,v in pairs(game:GetService("Workspace").Cameras:GetChildren()) do
  47. if v.ClassName == "Model" then
  48. if v.colorPart.BrickColor == BrickColor.new('Persimmon') then
  49. fireclickdetector(v.colorPart.ClickDetector, 0)
  50. fireclickdetector(v.colorPart.ClickDetector, 1)
  51. wait(.5)
  52. a = string.gsub(game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.Frame.Buy.Price.Text,",","")
  53. if tonumber(a) == tonumber(closest) then
  54. if tonumber(closest) >= tonumber(game:GetService("Players").LocalPlayer.Money.Value) then
  55. local CoreGui = game:GetService("StarterGui")
  56. CoreGui:SetCore("SendNotification", {
  57. Title = "Maxgat5";
  58. Text = "My Smart System Detected That You Need "..closest.." More Money To Buy The Next Camera";
  59. Duration = 30;
  60. })
  61. CoreGui:SetCore("SendNotification", {
  62. Title = "How The System Works?";
  63. Text = "It's Takes Your Money And The Price Of The Items And Checks The Closest Number Between Both Numbers.";
  64. Duration = 30;
  65. })
  66. end
  67. print(closest)
  68. firesignal(game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.Frame.Buy.MouseButton1Click)
  69. wait(.5)
  70. end
  71. wait(.5)
  72. firesignal(game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.Frame.Close.MouseButton1Click)
  73. end
  74. end
  75. end
  76. wait(1)
  77. firesignal(game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.Frame.Close.MouseButton1Click)
  78. end)
  79.  
  80. f:Button("Camera All",function()
  81. game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.sunburst.Visible = false
  82. for i,v in pairs(game:GetService("Workspace").Cameras:GetChildren()) do
  83. if v.ClassName == "Model" then
  84. if v.colorPart.BrickColor == BrickColor.new('Persimmon') then
  85. fireclickdetector(v.colorPart.ClickDetector, 0)
  86. fireclickdetector(v.colorPart.ClickDetector, 1)
  87. wait(.5)
  88. firesignal(game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.Frame.Buy.MouseButton1Click)
  89. end
  90. end
  91. end
  92. wait(1)
  93. firesignal(game:GetService("Players").LocalPlayer.PlayerGui.cameraPopup.Frame.Close.MouseButton1Click)
  94. end)
  95.  
  96. f:Button("Computer All",function()
  97. game:GetService("Players").LocalPlayer.PlayerGui.computerPopup.sunburst.Visible = false
  98. for i,v in pairs(game:GetService("Workspace").Computers:GetChildren()) do
  99. if v.ClassName == "Model" then
  100. if v.colorPart.BrickColor == BrickColor.new('Persimmon') then
  101. fireclickdetector(v.colorPart.ClickDetector, 0)
  102. fireclickdetector(v.colorPart.ClickDetector, 1)
  103. wait(.5)
  104. firesignal(game:GetService("Players").LocalPlayer.PlayerGui.computerPopup.Frame.Buy.MouseButton1Click)
  105. end
  106. end
  107. end
  108. wait(1)
  109. firesignal(game:GetService("Players").LocalPlayer.PlayerGui.computerPopup.Frame.Close.MouseButton1Click)
  110. end)
  111.  
  112. f:Button("SD Card All",function()
  113. game:GetService("ReplicatedStorage").buySD2:FireServer(game:GetService("Players").LocalPlayer.Money.Value)
  114. end)
  115.  
  116. f:Button("SD Card Half",function()
  117. game:GetService("ReplicatedStorage").buySD2:FireServer(math.floor(game:GetService("Players").LocalPlayer.Money.Value/2))
  118. end)
  119.  
  120. e:Toggle("AntiAfk",function(bool)
  121. shared.toggle = bool
  122. AntiAfk = bool
  123. end)
  124.  
  125. --Credits
  126. u:Label("Youtube Subs: "..getgenv().Subscribers,{
  127. TextSize = 25;
  128. TextColor = Color3.fromRGB(255,255,255);
  129. BgColor = Color3.fromRGB(69,69,69)
  130. })
  131.  
  132. u:Label("Discord Members: "..getgenv().TotalMembers,{
  133. TextSize = 25;
  134. TextColor = Color3.fromRGB(255,255,255);
  135. BgColor = Color3.fromRGB(69,69,69)
  136. })
  137.  
  138. u:Label("Pastebin Views: "..getgenv().TotalPastebinViews,{
  139. TextSize = 25;
  140. TextColor = Color3.fromRGB(255,255,255);
  141. BgColor = Color3.fromRGB(69,69,69)
  142. })
  143.  
  144. u:Button("Discord Server",function()
  145. setclipboard(getgenv().Discord)
  146. end)
  147.  
  148. u:Button("Youtube Channel",function()
  149. setclipboard(getgenv().Youtube)
  150. end)
  151.  
  152. u:Button("Pastebin Page",function()
  153. setclipboard(getgenv().Pastebin)
  154. end)
  155.  
  156. u:Button(getgenv().Username,function()
  157. setclipboard(getgenv().Username)
  158. end)
  159.  
  160. pcall(function()
  161. game:GetService("Players").LocalPlayer.PlayerGui.SDfull:Destroy()
  162. end)
  163.  
  164. while wait() do
  165. spawn(function()
  166. if AutoClick == true then
  167. local tool = game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool") or game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
  168. game.Players.LocalPlayer.Character.Humanoid:EquipTool(tool)
  169. tool:Activate()
  170. game:GetService("ReplicatedStorage").fileMade:FireServer()
  171. end
  172. end)
  173.  
  174. spawn(function()
  175. if AutoEdit == true then
  176. bruh1 = {}
  177. for i,v in pairs(workspace.Studios[game.Players.LocalPlayer.Name .."'s Studio"].Items:GetChildren()) do
  178. for i,v1 in pairs(v:GetChildren()) do
  179. if v1.ClassName == "NumberValue" then
  180. if v1.Name == "Keyboard" then
  181. if not table.find(bruh1,tonumber(v1.Value)) then
  182. table.insert(bruh1,tonumber(v1.Value))
  183. end
  184. end
  185. end
  186. end
  187. end
  188. for i,v in pairs(workspace.Studios[game.Players.LocalPlayer.Name .."'s Studio"].Items:GetChildren()) do
  189. for i,v1 in pairs(v:GetChildren()) do
  190. if v1.ClassName == "NumberValue" then
  191. if v1.Name == "Keyboard" then
  192. if v1.Value == math.max(unpack(bruh1)) then
  193. spawn(function()
  194. game:GetService("ReplicatedStorage").singleVideo:FireServer(v1.Parent)
  195. end)
  196. end
  197. end
  198. end
  199. end
  200. end
  201. end
  202. end)
  203.  
  204. spawn(function()
  205. if AutoEdit == true then
  206. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.popsCash:GetChildren()) do
  207. if v.ClassName == "Frame" then
  208. spawn(function()
  209. if AutoEdit == true then
  210. v:Destroy()
  211. end
  212. end)
  213. end
  214. end
  215. end
  216. end)
  217.  
  218. spawn(function()
  219. if AntiAfk == true then
  220. local bb=game:service'VirtualUser'
  221. bb:CaptureController()
  222. bb:ClickButton2(Vector2.new())
  223. end
  224. end)
  225. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement