The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Mini Metro script pastebin roblox
By LINK GAME on 2024-11-09 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://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Mini Metro")
  3. local f = w:CreateFolder("Builds")
  4. local e = w:CreateFolder("Mix")
  5. local u = w:CreateFolder("Credits")
  6. SelectedItem = "GasStation"
  7. Item = {}
  8. for i,v in pairs(game:GetService("ReplicatedStorage").Infrastructure:GetChildren()) do
  9.     if not table.find(Item,v.Name) then
  10.         table.insert(Item,v.Name)
  11.     end
  12. end
  13.  
  14. f:Toggle("AutoPress",function(bool)
  15.     shared.toggle = bool
  16.     AutoPress = bool
  17. end)
  18.  
  19. f:Dropdown("Select Item",Item,true,function(a)
  20.     SelectedItem = a
  21. end)
  22.  
  23. f:Button("Build",function()
  24.     function ClosestPart()
  25.         local dist = math.huge
  26.         local target = nil
  27.         for i,v in pairs(game:GetService("Workspace").Tycoons:GetChildren()) do
  28.             local magnitude = (v.TycoonCityDisplay.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  29.             if magnitude < dist then
  30.                 dist = magnitude
  31.                 target = v.Name
  32.             end
  33.         end
  34.         return target
  35.     end
  36.     Tycoon = ClosestPart()
  37.     for i,v in pairs(game:GetService("Workspace").Tycoons[Tycoon].Airspace:GetChildren()) do
  38.         local ohString1 = "Place"
  39.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  40.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(5,-18.4,-5))
  41.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  42.        
  43.         local ohString1 = "Place"
  44.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  45.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(0,-18.4,-5))
  46.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  47.        
  48.         local ohString1 = "Place"
  49.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  50.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(-5,-18.4,-5))
  51.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  52.        
  53.         local ohString1 = "Place"
  54.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  55.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(-5,-18.4,0))
  56.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  57.        
  58.         local ohString1 = "Place"
  59.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  60.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(0,-18.4,0))
  61.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  62.        
  63.         local ohString1 = "Place"
  64.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  65.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(5,-18.4,0))
  66.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  67.        
  68.         local ohString1 = "Place"
  69.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  70.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(-5,-18.4,5))
  71.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  72.        
  73.         local ohString1 = "Place"
  74.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  75.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(0,-18.4,5))
  76.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  77.        
  78.         local ohString1 = "Place"
  79.         local ohInstance2 = game:GetService("ReplicatedStorage").Infrastructure[SelectedItem]
  80.         local ohCFrame3 = CFrame.new(v.CFrame.Position + Vector3.new(5,-18.4,5))
  81.         game:GetService("ReplicatedStorage").shared.InvokePlacement:InvokeServer(ohString1, ohInstance2, ohCFrame3)
  82.     end
  83. end)
  84.  
  85. f:Button("Sell All",function()
  86.     function ClosestPart()
  87.         local dist = math.huge
  88.         local target = nil
  89.         for i,v in pairs(game:GetService("Workspace").Tycoons:GetChildren()) do
  90.             local magnitude = (v.TycoonCityDisplay.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  91.             if magnitude < dist then
  92.                 dist = magnitude
  93.                 target = v.Name
  94.             end
  95.         end
  96.         return target
  97.     end
  98.     Tycoon = ClosestPart()
  99.     for i,v1 in pairs(game:GetService("Workspace").Tycoons[Tycoon].Buildings:GetChildren()) do
  100.         local args = {
  101.             [1] = {
  102.                 [1] = v1,
  103.             },
  104.         }
  105.         game:GetService("ReplicatedStorage").shared.DestroyObject:FireServer(unpack(args))
  106.     end
  107. end)
  108.  
  109. e:Toggle("AntiAfk",function(bool)
  110.     shared.toggle = bool
  111.     AntiAfk = bool
  112. end)
  113.  
  114. --Credits
  115. u:Button("maxgat5#8395",function()
  116.     setclipboard("maxgat5#8395")
  117. end)
  118.  
  119. u:Button("Discord Server",function()
  120.     setclipboard("https://discord.gg/K4txdRSVfq")
  121. end)
  122.  
  123. if game:GetService("CoreGui"):FindFirstChild("PurchasePromptApp") then
  124.     game:GetService("CoreGui").PurchasePromptApp:Destroy()
  125. end
  126.  
  127. while wait() do
  128.     spawn(function()
  129.         if AutoPress == true then
  130.             function ClosestPart()
  131.                 local dist = math.huge
  132.                 local target = nil
  133.                 for i,v in pairs(game:GetService("Workspace").Tycoons:GetChildren()) do
  134.                     local magnitude = (v.TycoonCityDisplay.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  135.                     if magnitude < dist then
  136.                         dist = magnitude
  137.                         target = v.Name
  138.                     end
  139.                 end
  140.                 return target
  141.             end
  142.             Tycoon = ClosestPart()
  143.             for i,v in pairs(game:GetService("Workspace").Tycoons[Tycoon]:GetDescendants()) do
  144.                 if v.Name == "Buildings" then
  145.                     for i,v1 in pairs(v:GetDescendants()) do
  146.                         if v1.ClassName == "ProximityPrompt" then
  147.                             for i,v2 in pairs(v1.Parent:GetDescendants()) do
  148.                                 if v2.ClassName == "Part" or v2.ClassName == "MeshPart" then
  149.                                     fireproximityprompt(v1,0)
  150.                                     fireproximityprompt(v1,1)
  151.                                 end
  152.                             end
  153.                         end
  154.                     end
  155.                 end
  156.             end
  157.         end
  158.     end)
  159.    
  160.     spawn(function()
  161.         if AntiAfk == true then
  162.             local bb=game:service'VirtualUser'
  163.             bb:CaptureController()
  164.             bb:ClickButton2(Vector2.new())
  165.         end
  166.     end)
  167. end



  • Recent Roblox Scripts