Part streaming restores parts that should have been deleted

Part streaming restores parts that should have been deleted

I am a developer for a vehicle (train) simulator game that has part streaming enabled. In this game, trains are coded to automatically delete if the driver exits the train. However, because of part streaming loading trains in and out, it is possible for some parts of the train to remain in the game for one client. These parts do not appear on other clients so it is client-sided and I can connect it to part streaming as this does not happen when it is not enabled. I can confirm that it is client-sided as I have joined the same server that a player was experiencing this issue in, and the parts were not there on my end. I am unsure when this bug has started happening, and I am unsure of the exact moment that causes this, but here are two possible causes:

-The parts delete at the exact moment the parts are streamed out of the client
-The parts that are currently streamed out are deleted, but some have not actually been deleted for the client, and these remain when they are streamed back in

It may be hard to reproduce this and I do not have enough experience to do so as it relates to part loading and unloading.

Game: PTA Subway: Fifth Av Lines - Roblox

Seen in the images, parts of a deleted train still remain on a client because part streaming restored these parts even though they were supposed to be deleted.

These screenshots were taken by different users who reported this bug to our development team. These are not the first cases of it happening.

Thanks for the report! We’ve filed a ticket to our internal database, and we’ll follow up when we have an update for you.

2 Likes

Are the parts being deleted on the server or the client(s)?

Can you confirm that the parts were actually deleted and then reappeared? Or were they just never deleted?

Any idea when this issue started occurring? Or has it always occurred?

They are being deleted on the server but remain on the client because of part streaming. Only one client sees the parts. I don’t know when it started occurring.

Can you share any more details? How are the parts being deleted, via destroy? Are they parts being deleted individually, or are they descendants of an instance that is being destroyed?

Apologies for the late response. The parts are being deleted by having the main model they are grouped under destroyed via scripts.

It’s been… quite a while. Could I please get an update on this?

Is this issue still occurring? Are you able to create/share a simple repro place that demonstrates the problem?

I don’t believe so. Should be resolved now.