So, Im spawning a ton of parts in batches (I wait() between each) when the server is created, to generate some stuff (parent part, position part, :MakeJoints()). They end up being grounded to an anchored part.
I just increased the number of batches (just change a single integer to a higher value), and it appears only the first few batches of parts appear on the client (shift+F1 shows like 1/4 the primitives, than what a print from the server tells me there are, plus, of course, I dont see the missing ones). Possibly the ones that are created before player joins (as without waits, all the parts will be generated before player joins, and it works fine in that case)
When spawning the parts, I printed part count on server before and after, and they are correctly added there (and again, server prints that they are still there, so theyre not disappearing or anything).
They just never arrive on the client…?
Im talking about 13k parts spawned over ~2 seconds (.1 second wait between batches) one by one with some laggy processing going on as well.
Only 3-4k parts arrive on the client (the first 3-4k). Also, it cuts off after one of the waits (not in middle of a batch).
So theres a point where after the script yields and later resumes, the following batches of parts no longer replicate to client at all, even though they exist on server.
I will see if adding longer waits has any effect…
EDIT:
no, the INSTANCES seem to replicate, but the primitives themselves do not show up.
EDIT2:
though that could just be the joint/weld instances, maybe?
EDIT3:
removing the waits ‘solves’ problem (not anymore) (maybe something to do with player joining while its spawning the stuff? Im teleporting to the place after reserving it), (the bugs still there, tho)