How do I make a Reset Build function but for infinite distance(like the rezon map)?

making a build reset function for a very large 1v1 map but my explosion device goes only 10 when i paste many explosion devices the map is laggy and has delay so what do i do