When a new player joins, I would like to spawn a “plot” or a baseplate in which the player would “own” - Forever.
I’m really not sure where to begin or how this would work.
I’ve searched around and maybe I am not looking in the right direction.
Essentially just looking for a resource to do some research on this topic.
I’m GUESSING that I would have to some how clone this plot from replicated storage on player join, however not sure how that plot would save everything that is on it and their positions so when the player logs back in it stays. I also do not want any other players to be able to access this plot unless invited by the player.
Thoughts, suggestions, ideas, resources?
Well, for starters you would want to research the DataStoreService quite a bit. This is what would allow you to save the players “plot” and also load it back in. You can’t save Instances on DataStoreService, so you’ll need to find a way to reference certain objects (Like a tag) and save their Position, as well as orientation or anything else that would need to be saved.
Here’s a Link for Data Store Data Stores | Documentation - Roblox Creator Hub
And I also think OOP would work well with this type of system, but if you aren’t familiar with it that’s fine.
Secondly, a whitelist is rather simple. There’s multiple ways you can allow a Player to whitelist other players. A Gui would be easiest for your players, but you can also use Chatted commands. So if you aren’t familiar with Guis, you’d want to do a bit of research on TextButtons, TextBox and I would also recommend looking at tables if you aren’t familiar with them.
Here are some links for them :
TextButton : TextButton | Documentation - Roblox Creator Hub
TextBox : TextBox | Documentation - Roblox Creator Hub
Tables : Tables | Documentation - Roblox Creator Hub
Chatted : Player | Documentation - Roblox Creator Hub
You might also have to do a bit of research on working with strings if you aren’t familiar with them.
Here’s a link for that : string | Documentation - Roblox Creator Hub
And if you aren’t familiar with events like PlayerJoined or PlayerRemoved, which can be used to load and save the “plots” or any other Data of the player.
Here are the links : Player Added ; Player Removing
There are also a multitude of other things you might want to look at, but that’s basically the foundation of what you might want to research or reference.
Thank you much for the resources! I’ll definitley be using the datastore reference and looking into the whitelist method you described