In a game that I am working on, players have the ability to make guilds/groups and create a town. a citizen’s datastore will have a value for the player who owns the guild, it will save their UserID in a StringValue to the datastore. The leader will have all the guild info such as Guild Name, Description, Icon, etc. How should I write a script that will find the leader’s datastore and retrieve info?
Use the key which is used to save and retrieve the leader data(most of the time player.UserId
is used unless you’re using a library such as Datastore2).