Map Moves On Client and Not Server

Similar to the new Infinite Map Vehicle Driving games like Dusty Trip or Desert Bus, I tried doing it as well…
image
Except it’s not going well.

I don’t know how infinite maps work anyway so I tried something similar like scrolling the map instead of the vehicle and duplicating in map segments, but this happened.


Additionally, I’d like tips on “Infinite Map Generating” since currently I have a time based duplication and things are clipping with each other.

One minute later…

Plz don’t mind me avatar it’s for lolz

it seems like you have an unanchored part causing that issue, make sure everything is anchored.

Aswell, you can try setting moveInterval to 0.04 or 0.03 as it is a more stable time and has less variation

I found that anchoring the “Sub Parts”(decorations of the map like trees that only move with a base part) would keep the map from moving. I only anchored the base part and had a script weld stuff to it.

before certain edits

As for the segments, I hope to make a sort of “random dungeon” type of thing where after a certain time/distance the locations the train goes to would be different. e.g. a tunnel, a city, this grey patch of land.

For movement I tried configurations like this
image
image
I don’t exactly know why but I assume it’s for stuff like less lag? hence “variation”
Looks like I’ll have to use a timer on the map again…

I’ve asked ChatGPT about moving the model(train) instead of the map but things aren’t looking too positive for me.

Inertia doesn’t work here

if you type

print(wait())

in the command line you can see itll return a number of how long it slept, this and because its wait() it is the minimum(excluding task.wait)

this was mainly stop any timing issues that may have been occurring