The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
YouTube Simulator script pastebin roblox
By LINK GAME on 2024-09-20 08:00 am | Syntax: LUA | Views: 18



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  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:Button("maxgat5#8395",function()
  127.     setclipboard("maxgat5#8395")
  128. end)
  129.  
  130. u:Button("Discord Server",function()
  131.     setclipboard("https://discord.gg/K4txdRSVfq")
  132. end)
  133.  
  134. pcall(function()
  135.     game:GetService("Players").LocalPlayer.PlayerGui.SDfull:Destroy()
  136. end)
  137.  
  138. while wait() do
  139.     spawn(function()
  140.         if AutoClick == true then
  141.             game:GetService("ReplicatedStorage").fileMade:FireServer()
  142.         end
  143.     end)
  144.    
  145.     spawn(function()
  146.         if AutoEdit == true then
  147.             bruh1 = {}
  148.             for i,v in pairs(workspace.Studios[game.Players.LocalPlayer.Name .."'s Studio"].Items:GetChildren()) do
  149.                 for i,v1 in pairs(v:GetChildren()) do
  150.                     if v1.ClassName == "NumberValue" then
  151.                         if v1.Name == "Keyboard" then
  152.                             if not table.find(bruh1,tonumber(v1.Value)) then
  153.                                 table.insert(bruh1,tonumber(v1.Value))
  154.                             end
  155.                         end
  156.                     end
  157.                 end
  158.             end
  159.             for i,v in pairs(workspace.Studios[game.Players.LocalPlayer.Name .."'s Studio"].Items:GetChildren()) do
  160.                 for i,v1 in pairs(v:GetChildren()) do
  161.                     if v1.ClassName == "NumberValue" then
  162.                         if v1.Name == "Keyboard" then
  163.                             if v1.Value == math.max(unpack(bruh1)) then
  164.                                 spawn(function()
  165.                                     game:GetService("ReplicatedStorage").singleVideo:FireServer(v1.Parent)
  166.                                 end)
  167.                             end
  168.                         end
  169.                     end
  170.                 end
  171.             end
  172.         end
  173.     end)
  174.    
  175.     spawn(function()
  176.         if AutoEdit == true then
  177.             for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.popsCash:GetChildren()) do
  178.                 if v.ClassName == "Frame" then
  179.                     spawn(function()
  180.                         if AutoEdit == true then
  181.                             v:Destroy()
  182.                         end
  183.                     end)
  184.                 end
  185.             end
  186.         end
  187.     end)
  188.  
  189.     spawn(function()
  190.         if AntiAfk == true then
  191.             local bb=game:service'VirtualUser'
  192.             bb:CaptureController()
  193.             bb:ClickButton2(Vector2.new())
  194.         end
  195.     end)
  196. end