How to restrict a game for banned players only

How would you make it so that the banlist would synch with my two games: One being the actual game itself; and 2, the banland game. And only banned people and whitelisted users could join but not normal players. Help would be appreciated, thank you!

You could check the player data for any matching entries in the banlist, and if found then redirect that player to the banland (all on the server of course).

I may not have been specific enough, but I have already created the banland system using teleport service and using datastore to store all the banned players IDs. My focus question was how you would make it so that you can synch the banlist in another game and then redirect a normal player out of it if they are not banned.

The banland should be a place in the experience. That way, it has access to all of the datastores the experience has and any person that tries to join someone in the banland will automatically be put into the main place by Roblox.
See Games and Places, Data Stores

2 Likes

Thank you for the advice! May I ask how some games, such as tower of hell managed to create a banland script for banned people.

i think the made an game inside the game, and passing the info

I don’t completely understand, but if you want to create a ban script simply store it in the datastore and kick on join.

Player joins the main experience → is him banned? Yes → tp to the banned players place. | no → do nothing

If it is two different universes, you could set up an external webhook that goes to the main game, finds out if player is banned, and tells the banland game the info
If it’s the same universe, then as long as they share the same datastore name (considering bans are being handled by datastore), then you can just check through datastore async