So, i just thought about make a house system in a future game, the problem is that i thought two ways to make it, the first which is the most easiest, is make the house in a separated privated server, and the other is make it in a public server, so what do you guys think? Thanks for reading
What I did for this system was just have the houses stored in ReplicatedStorage and move that players house when they press the keybind at the door to go inside
Yeah, well, i will explain it:
If i make a separated server, i can load the house easier, but i saw a thread, that teleporting sometimes make some games lose players
If i make it in the actual game, that will be hard to me to script in some stuff, and will be more laggy.
If you’re scared about performance when creating your house system, you can create a sort of “chunkify” system where houses items don’t load in when you get out of a certain distance and completely disappear when you’re super far away.
Also, I don’t recommend having houses be done in a separate server, it can be done (like meepcity parties) though I don’t recommend it unless it adds onto the game.
The same could be achieved with StreamingEnabled
That is true however, once you’ve reached the area, it stays loaded in/it can be uncustomizable at times and requires a bunch of WaitForChilds (sometimes) and some other hassles .
The problem is that this will be more difficult to script the load script, since the houses are in a separated position, my current system that i thought, will load their furniture position, what if those players take another house? their furniture will stay in his latest house, which will be hard to me to create, well, i wouldn’t like to talk about that here, because this will become off topic to this thread
No, I believe this fits the topic :3
Anyways, you could simply fix that by setting the plot back to “template” status to completely clear everything after the player has left (functions can be used to clear it). Meepcity is a pretty good example of this actually. If they take another house, just do the same then, put the “template” in, clearing it, and load the data onto the other plot they chosen.
TL:DR
Three functions, one loads in player data, another loads house plot into the plot with player data, and removing plot land when player leaves and allowing players to get it. This should work completely fine as I’ve seen many games done things similar to this.
Ok, let’s take an example of what i would do:
When player is leaving, save his furnitures position and data.
When the player joins again in another house, his furniture will spawn in his previous house.
Well, that’s the problem, what do you mean with template???
When the plot was first empty, consider that as the “template”, there is absolutely nothing, its owned by nobody. When they take it, load data as necessary and etc onto the plot as usual. When the player leaves, remove the data from the previous house as to be completely cleared and load as usual.
Bloxburg, Meepcity (again lol), Work at a pizza place, and Lumber Tycoon as examples of this working fine, there should be no issues I’m pretty sure.
Omg my brain hurts, but i think that now i can underrstand lol, thanksssss alot ootototootot