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



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local library = loadstring(game:HttpGet(('https://pastebin.com/raw/FsJak6AT')))()
  2. local w = library:CreateWindow("Gold Factory Simulator")
  3. local b = w:CreateFolder("AutoFarm")
  4. local e = w:CreateFolder("Mix")
  5. local u = w:CreateFolder("Credits")
  6. --Toggle
  7. b:Toggle("AutoCollectGold",function(bool)
  8.     shared.toggle = bool
  9.     AutoCollectGold = bool
  10. end)
  11.  
  12. b:Toggle("AutoPutInCraft",function(bool)
  13.     shared.toggle = bool
  14.     AutoPutInCraft = bool
  15. end)
  16.  
  17. b:Toggle("AutoCollectFromCraft",function(bool)
  18.     shared.toggle = bool
  19.     AutoCollectFromCraft = bool
  20. end)
  21.  
  22. b:Toggle("AutoSell",function(bool)
  23.     shared.toggle = bool
  24.     AutoSell = bool
  25. end)
  26.  
  27. e:Toggle("AntiAfk",function(bool)
  28.     shared.toggle = bool
  29.     AntiAfk = bool
  30. end)
  31.  
  32. e:Button("Rejoin",function()
  33.     game:GetService("TeleportService"):Teleport(game.PlaceId, game:GetService("Players").LocalPlayer)
  34. end)
  35. --Credits
  36. u:Button("maxgat5#8395",function()
  37.     setclipboard("maxgat5#8395")
  38. end)
  39.  
  40. u:Button("Discrod Server",function()
  41.     setclipboard("https://discord.gg/K4txdRSVfq")
  42. end)
  43.  
  44. while wait() do
  45.     if AutoCollectGold == true then
  46.         for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  47.             if v.Name == "TextLabel" then
  48.                 if v.Text == game.Players.LocalPlayer.Name.."'s hut" then
  49.                     for i,v1 in pairs(v.Parent.Parent.Parent.Parent.Parent.Crafters:GetDescendants()) do
  50.                         if v1.Name == "FurnaceGlass" then
  51.                             if v1.Transparency == 0 then
  52.                                 for i,v5 in pairs(game:GetService("Workspace").GoldNuggets:GetChildren()) do
  53.                                     string = game:GetService("Players").LocalPlayer.PlayerGui.PlayerDetails.Holder.Details.BasketBack.AmountLabel.Text
  54.                                     a,b = string:match("(.+)/(.+)")
  55.                                     if a ~= b then
  56.                                         if AutoCollectGold == true then
  57.                                             game:GetService("ReplicatedStorage").Remotes.Events.CollectNugget:FireServer(v5.Name)
  58.                                         end
  59.                                     end
  60.                                 end
  61.                             end
  62.                         end
  63.                     end
  64.                 end
  65.             end
  66.         end
  67.     end
  68.    
  69.     if AutoPutInCraft == true then
  70.         for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  71.             if v.Name == "TextLabel" then
  72.                 if v.Text == game.Players.LocalPlayer.Name.."'s hut" then
  73.                     for i,v1 in pairs(v.Parent.Parent.Parent.Parent.Parent.Crafters:GetChildren()) do
  74.                         for i,v2 in pairs(v1:GetDescendants()) do
  75.                             if v2.Name == "Label" and v2.Parent.Name == "Timer" then
  76.                                 if v2.Text ~= 0 then
  77.                                     if AutoPutInCraft == true then
  78.                                         game:GetService("ReplicatedStorage").Remotes.Events.CraftMachine:FireServer("Add",v1)
  79.                                     end
  80.                                 end
  81.                             end
  82.                         end
  83.                     end
  84.                 end
  85.             end
  86.         end
  87.     end
  88.    
  89.     if AutoCollectFromCraft == true then
  90.         for i,v in pairs(game:GetService("Workspace").Plots:GetDescendants()) do
  91.             if v.Name == "TextLabel" then
  92.                 if v.Text == game.Players.LocalPlayer.Name.."'s hut" then
  93.                     for i,v1 in pairs(v.Parent.Parent.Parent.Parent.Parent.Crafters:GetChildren()) do
  94.                         for i,v2 in pairs(v1:GetDescendants()) do
  95.                             if v2.Name == "Label" and v2.Parent.Name == "Quantity" then
  96.                                 string = v2.Text
  97.                                 a,b = string:match("(.+)/(.+)")
  98.                                 if a == b then
  99.                                     string1 = game:GetService("Players").LocalPlayer.PlayerGui.PlayerDetails.Holder.Details.BasketBack.AmountLabel.Text
  100.                                     a1,b1 = string1:match("(.+)/(.+)")
  101.                                     if a1 ~= b1 then
  102.                                         if AutoCollectFromCraft == true then
  103.                                             game:GetService("ReplicatedStorage").Remotes.Events.CraftMachine:FireServer("Collect",v1)
  104.                                         end
  105.                                     end
  106.                                 end
  107.                             end
  108.                             if v2.Name == "Label" and v2.Parent.Name == "Ready" then
  109.                                 if v2.Text == "READY" then
  110.                                     string = game:GetService("Players").LocalPlayer.PlayerGui.PlayerDetails.Holder.Details.BasketBack.AmountLabel.Text
  111.                                     a,b = string:match("(.+)/(.+)")
  112.                                     if a ~= b then
  113.                                         if AutoCollectFromCraft == true then
  114.                                             game:GetService("ReplicatedStorage").Remotes.Events.CraftMachine:FireServer("Collect",v1)
  115.                                         end
  116.                                     end
  117.                                 end
  118.                             end
  119.                             if v2.Name == "Label" and v2.Parent.Name == "Timer" then
  120.                                 if v2.Text == 0 then
  121.                                     string = game:GetService("Players").LocalPlayer.PlayerGui.PlayerDetails.Holder.Details.BasketBack.AmountLabel.Text
  122.                                     a,b = string:match("(.+)/(.+)")
  123.                                     if a ~= b then
  124.                                         if AutoCollectFromCraft == true then
  125.                                             game:GetService("ReplicatedStorage").Remotes.Events.CraftMachine:FireServer("Collect",v1)
  126.                                         end
  127.                                     end
  128.                                 end
  129.                             end
  130.                         end
  131.                     end
  132.                 end
  133.             end
  134.         end
  135.     end
  136.    
  137.     if AutoSell == true then
  138.         game:GetService("ReplicatedStorage").Remotes.Events.VaultInteraction:FireServer()
  139.     end
  140.    
  141.     if AntiAfk == true then
  142.         local bb=game:service'VirtualUser'
  143.         bb:CaptureController()
  144.         bb:ClickButton2(Vector2.new())
  145.     end
  146. end