I’m making plans for a sandbox game where players can decorate and build on their island and invite other players to their island. How should I reliably load and unload islands for certain players on said islands?
You could make a local script to reparent any existing islands and newly created islands into a non-Workspace service or nil-parented instance such as one newly made from Instance.new()
. I use this tactic in my sandbox tycoon game for hiding other people’s drops from the player’s client and it really helps with performance.
In terms of when to show or hide islands, you could have a RemoteEvent fire from the server to the player’s client and tell their client that the player has moved to a new island.
If your islands could be visited with boats or any other physical form of travel, you could try checking the distance between the player and the islands, making them visible if the player is nearing or within their bounding box, invisible if not.