looping an object

I am trying to make a very long hallway that takes around 3 days or so to get to the end of. I can’t figure out any other way rather than rendering the whole thing at once, obviously not the smartest way to do it. I tried to figure out how to loop the segment of the hallway but I am completely lost. I have a limited knowledge of code, so I thought I’d ask here.

You should make the length of the hallway, the distance the player can see.
Once the player gets 1 part of the hallway closer to one side, spawn a new part of the hall into the direction that the player is walking. Although eventually you’d get a floating point precision error, if it does take a really long time to traverse.

According the google the average walking speed is 5kph. If you consider 1 unit to be 1 meter then to walk continuously for 3 days straight you would get to 360,000. (or if you could start at -180,000 and go to 180,000) . I think floats can represent that without precision issues.