I’m trying to create a generation script for steps that go on forever, but efficiently as stair cases will eventually cause insane performance issues if they keep generating
my goal is to find a idea/solution to go about this
I’ve tried a couple of different ideas like only generating steps when someone is near the end and also degenerating/retracting when no one is near the end but this would still cause issues if there is multiple staircases or a player just keeps walking and doesn’t stop
this works but it doesn’t really look like a stair case, I could expand the range before it phases out but if there is other players this would also cause decent performance issues
my next idea to try is to have all stairs local and only generate stairs you are on, and degenerate those as well
if anyone has a better solution that would be great, thought it was a good idea to ask due to me redoing quite a few times
What I would do in this case is actually just make a script that generates infinite steps for a staircase. I don’t think there would be a lot of performance issues.
Steps should also be generated slowly. Too many at the same time will cause some performance issues. But what you do is make the steps bigger so players how to jump and take longer to go up. Or you can go with running up an infinite staircase.
Anchored should be set for the step Part first because of physics issues.
Also 10/10 game. You should also make periodic cleanups of stair Parts if you want players to try to reach infinity but don’t want major performance issues. Destroying steps when out of range is problematic when there’s multi-player.
I would do what Minecraft does. Load in chunks (of stairs) at a time when they are a certain distance away and delete the other chunks. So maybe have 2 chunks of stairs to start (depends how big the chunks are) once they reach the second chunk add a new chunk after the second 1 then once they reach the third one delete the first chunk and add a new one to the end! Keep repeating to make it infinitely generate stairs or just set a fixed amount if you don’t want it infinitely