Advertisement
_Thanh_Thy_Cute_

Rise of Nations PLACE MINES ON ALL THE CITIES WITH RESOURCES

Sep 4th, 2021
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local country = game:GetService("Players").LocalPlayer.leaderstats.Country.Value
  2.  
  3. for i,v in pairs(game:GetService("Workspace").Baseplate.Cities[country]:GetChildren()) do
  4. print(v)
  5. if v.Resources:FindFirstChildOfClass("Vector3Value") 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. print(v)
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement