I want to make a clan system but I don’t want players to have the same clan name
The problem is i dont know how I can make this or even where to start
Could anyone help me?
I’m not asking for a script i just want to know how I can at least start this orif i can even do it.
When the player joins the game, put them on a Neutral team and give them the option to start a clan or join a clan.
When the player starts a clan, add a new team to the game and add the player to it. When they name it, add the name to a big list of names so if someone else tries the same name, you can have a script that checks the list for that name and if it’s in the list then tell the player to make a different clan name.
When a player joins a clan, just add them to that clan’s team.
I want the clan to save even when you leave so if a new game is created and they try to enter a clans name thats already used it doesnt work
Is that possible?
As already mentioned by @xander5610 , you’ll have to look into DataStores. To be specific, you have to use GlobalDataStores for this so all users in every server can see all possible clans.
I’m trying not to judge you but if you don’t know how to use DataStores yet, you’re probably not skilled enough at this point to make a clan system like that. It’s still worth it to look into DataStores and see what you can do, but even at my level it can be a real struggle to create a good performing clan or group system, and i’ve been coding for over 2 years.
The players can create their own clan or guild whatever you want to call it
I’ve seen this in other games but what I haven’t seen is restricting people to only have one guild with a certain name
So lets say I create a guild called The City and then the next day someone tries to make a guild called The City it would say “Guild is already taken or there was an error in making the clan” as to restrict the guild from being made two times
Oh, all right, the only way to do this that I can see is Datastore service, you check if the clan name is already in use with GetAsync, if it is then say you can’t make it, otherwise set it, and make the clan.
I get the general Idea of what I have to do now, sorry for not explaining that in the post this is my first post I’m new to the forum I should have been more clear on what I want.
Cheers.