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



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("My Toy Factory")
  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("PutInBoxes",function(bool)
  9.     shared.toggle = bool
  10.     PutInBoxes = bool
  11. end)
  12.  
  13. b:Toggle("TakeToy",function(bool)
  14.     shared.toggle = bool
  15.     TakeToy = bool
  16. end)
  17.  
  18. b:Toggle("PutInShelf",function(bool)
  19.     shared.toggle = bool
  20.     PutInShelf = bool
  21. end)
  22.  
  23. local AmountMaterial = 1
  24. local Material = "Wood"
  25. local Materials = {}
  26. for i,v in pairs(game:GetService("Workspace").Plots[game.Players.LocalPlayer.Name.."Plot"].Materials:GetChildren()) do
  27.     Materials[i] = v.Name
  28. end
  29.  
  30. f:Dropdown("Select Material",Materials,true,function(mob)
  31.     Material = mob
  32. end)
  33.  
  34. f:Box("Amount "..Material,"number",function(value)
  35.     AmountMaterial = value
  36. end)
  37.  
  38. f:Button("Buy Material",function()
  39.     game:GetService("ReplicatedStorage").RemoteEvents.BuyMaterial:FireServer(Material,AmountMaterial)
  40. end)
  41.  
  42. e:Toggle("AntiAfk",function(bool)
  43.     shared.toggle = bool
  44.     AntiAfk = bool
  45. end)
  46.  
  47. --Credits
  48. u:Button("maxgat5#8395",function()
  49.     setclipboard("maxgat5#8395")
  50. end)
  51.  
  52. u:Button("Discrod Server",function()
  53.     setclipboard("https://discord.gg/K4txdRSVfq")
  54. end)
  55.  
  56. while wait() do
  57.     if PutInBoxes == true then
  58.         fireclickdetector(game:GetService("Workspace").Plots[game.Players.LocalPlayer.Name.."Plot"].DepositMaterials.ClickDetector, 0)
  59.         wait(.1)
  60.         fireclickdetector(game:GetService("Workspace").Plots[game.Players.LocalPlayer.Name.."Plot"].DepositMaterials.ClickDetector, 1)
  61.         wait(.1)
  62.     end
  63.    
  64.     if TakeToy == true then
  65.         for i,v in pairs(game:GetService("Workspace").Plots[game.Players.LocalPlayer.Name.."Plot"].Assets.ClickModel:GetDescendants()) do
  66.             if v.Name == "ClickPart" then
  67.                 fireclickdetector(v.ClickDetector, 0)
  68.                 wait(.1)
  69.                 fireclickdetector(v.ClickDetector, 1)
  70.                 wait(.1)
  71.             end
  72.         end
  73.     end
  74.    
  75.     if PutInShelf == true then
  76.         fireclickdetector(game:GetService("Workspace").Plots[game.Players.LocalPlayer.Name.."Plot"].Shelf.Colider.ClickDetector, 0)
  77.         wait(.1)
  78.         fireclickdetector(game:GetService("Workspace").Plots[game.Players.LocalPlayer.Name.."Plot"].Shelf.Colider.ClickDetector, 1)
  79.         wait(.1)
  80.     end
  81.    
  82.     if AntiAfk == true then
  83.         local bb=game:service'VirtualUser'
  84.         bb:CaptureController()
  85.         bb:ClickButton2(Vector2.new())
  86.     end
  87. end