How would I go about loading “rooms” or “areas” of a map on the client side, you know- like those 2D games where the screen fades to black and you’re in a new part of the map.
I would just “clone” the room into the workspace, however some rooms have server scripts that wont work if cloned locally.
In that case, you’d want to use Remote Events to communicate to the server to load in a new room. Here’s the documentation, if it helps.
And always make sure to cleanup connections to prevent memory leaks!
yes, im very aware of remote events, but is there a way to make the room loading client sided with a work-around to server scripts inside said rooms, like server scripts inside Proximity Prompts
You don’t need to clone map or even RemoteEvent
you can do move your map to ReplicatedStorage or workspace by using clientside for Parent
but You cannot place Script in ReplicatedStorage similiar ServerStorage won’t be work
to make it serverside work in ReplicatedStorage it’s you have put script at workspace or ServerScriptService soo you have code about ReplicatedStorage work
If anyone reads this and is struggling with this issue too, i’ve found the solution-
You can load the rooms on the client via Remote Events or Local Scripts, regarding the Server Scripts inside the rooms, you can set the RunContext of the Server Scripts to “Client” to make them run on the Client. They even work on Proximity Prompts!