How do I set player parts ownership and delete when leaving

Been experimenting with “Starting locations” and “Plots” but what I am struggling to understand is what is a good way to delete the players buildings after they leave(let alone save it).
Right now I have a folder, and in that folder stores a player under him is right now just a starter area. What I am struggling to understand, is how do I attach the player.Name to the part in a folder and then delete it when they leave the game? Also making it set to a certain spawn location… I can do this with static objects but can’t seem to make it work with spawn locations. It is like when you join bloxburg you join the game you go into a plot and your stuff is there. Also how would you go about saving it? I have been at this for a few days and kinda gotten lost. If someone knows a guide/youtube video let me know but most videos on this are like 5 years old and aren’t exactly the newer way of coding because a lot has changed. I can’t post code as this is like a bunch of different scripts and I feel this level of scripting requires advice more than anything lol point me in the right direct plz. I am aware of a bloon value on a part, and collection service but how do I attached the code that makes the folder set the plot, set the player.Name and owner and :Destroy() it after they leave?

1 Like

to make a player own a part, as you’ve stated, you can use values or attributes. you can partner the player’s name within the part they own, and when they leave, iterate through all the values and delete the ones with their name.

Saving their stuff can be a little more complex. I can’t quite help you there as I have never tried anything like that.

2 Likes

Thanks for the reply, I think that is best, I can’t seem to find a source on saving plots/buildings/parts/houses etc.

1 Like