Advertisement
_Thanh_Thy_Cute_

Rise of Nations BUILD MINES ON CITIES WITH THE RESOURCE YOU WANT

Sep 4th, 2021
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. local country = game:GetService("Players").LocalPlayer.leaderstats.Country.Value
  2. local resource = "" -- put what resource u wanna use, its blank so u decide
  3.  
  4. for i,v in pairs(game:GetService("Workspace").Baseplate.Cities[country]:GetChildren()) do
  5. if v.Resources:FindFirstChild(resource) then
  6. print(v)
  7.  
  8. local ohTable1 = {
  9. [1] = v
  10. }
  11. local ohString2 = "Mines"
  12.  
  13. workspace.GameManager.CreateBuilding:FireServer(ohTable1, ohString2)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement