Model Parts disappearing when running the game

hello, this is my first ever forum post and i’d like to keep it short regarding the situation. i am currently working as a scripter for a game and while scripting something i ran into a problem. the parts would disappear of models i’d try to get (often returning nil) and, yes. all of the parts in the model are anchored as they should be… any clue what this could be? i’m starting to think its a virus however by looking at all of the game scripts i don’t see anything suspicious.

all of the parts before playing
image

after playing (testing)
image

1 Like

proof of all of the parts being anchored

Make sure that the parts have their property Archivable set to true.
Alternatively StreamingEnabled could be streaming the parts out. Try moving to the parts and see if they reappear.

1 Like

that seems to fix it, however its still stupid as my game relies on multiple cameras. is there any way to bypass it? or disable the streamingenabled feature to do that. i get it would downgrade performance and all but i think its kind of stupid as it doesnt even get them on the server.

1 Like

You can set the models’ ModelStreamingMode to Persistent to prevent them from being streamed out, alternatively you can use a Player's method RequestStreamAroundAsync:

image

I’m not entirely sure what the other options do but it’s worth looking them up: ModelStreamingMode | Documentation - Roblox Creator Hub

1 Like

appreciate it mate, thanks.

|||aaaaa need the count|||

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.