Endless world script

Hello!
I am just wondering is it possible to have a certain terrain, for example (1km*1km). But with the ability to walk endlessly. It is like a world without edges. If you will continue to go forward - you will always return from the other side.
When the player is coming closer to the left edge, for example, he or she sees the opposite right side of the map. And if the player cross the edge he will appear on the other side of the terrain.

in theory yes its possible through a variety of means. this question has been asked many times but i have yet to see someone go through with actually making it. in any event there are two methods that come to mind to accomplish this. first you could try level streaming and just stream in levels on repeat. second you could move your player character when they reach the edge of the world.