Okay, so heres my problem. This may be a bit confusing but I hope someone can understand what I am saying so that they can help me with this.
I want to be able to spawn houses into a neighborhood when players enter the game. But the problem is that when I spawn them they need to spawn to a specific location. So when player 1 spawn House spawns in player 1's set location. The same goes for player 2,3,4.. The problem with this is that if for instance 4 players spawn, of course 4 houses would spawn in their set locations.
House 1 spawns at House 1 location. House 2 spawns at House 2 location. House 3 spawns at House 3 location. House 4 spawns at House 4 location.
HERE IS THE PROBLEM. If player 2 leaves and another player enters How do I fill player 2's location with the next player that enters? If I do a counting script the house would spawn at player 3's location and I would have a house on top of a house.
I basically need to be able to have players come in and if for instance player 2 leaves then the next player to join the server, his/her house would spawn in the given location where player 2's house used to be.
I know this is a tough question but if someone could just give me some advice on where to start I would be very grateful. I have tried numerous things but they did not work. Thanks in advance.

4 comments
Dang... I was thinking of using a table to store it... I swear I have been down a rabbit hole with this all day.. THANK U
OK So 1 question How am I able to find the plot that the player left behind? Under removing player Above I see thatyou have a tabe.insert (AvailablePlots) But how do we find the value for the plot that the said player left behind? This made the other script that I wrote for this function much easier and a lot simpler but this is the same problem I was running into before. That when someone leaves
If it were me, I would probably keep a StringValue inside each house model. Then when the player joins you can set the string value in the house to the players name. Then, Every time a player leaves you can check each house and see if the value is equal to the player that left name. To get the players name, the (game.Players.PlayerRemoving:connect(function(Plr) that I mentioned in my answer just
o get the players name, the (game.Players.PlayerRemoving:connect(function(Plr) that I mentioned in my answer just do Plr.Name. The line of code should look something like if House.StringValue.Value = Plr.Name then House:Destroy()