How would you Load and Unload Parts of a game

I am trying to make a system that loads and unloads parts of a map
Streaming Enabled uses a lot of memory (according to my tests)
In the game you can get teleported from the main obby to the hub via a button or part.

I tried to use advice from other posts but coudnt get my head around it (I dont know wheither i should use Replicated Storage or Server Storage)

Any Help is appreciated!

1 Like

You could use roblox’ built-in StreamingEnabled feature.

Otherwise you could find some open-sourced chunk systems or even make one yourself.

I want to use something else. Not Streaming Enabled

Use ReplicatedStorage. It loads instantly when a player joins the game, and when they click the button, just set the model’s parent to workspace. This would most likely be the best way as of right now.

1 Like

You could parent a part to ReplicatedStorage or even nil to unload it.

2 Likes

Ok then. I will try that thanks.

parenting to a nil is removing, or is it?

Parenting to nil removes it but keeps it in memory. If you call :Destroy() on an instance that actually removes the instance and locks the parent so you cant reassign it

ok i will figure this out later

1 Like