How do I make a ban GUI still kick the player out after they get banned from the game if they're in another server?

I’ve been struggling with this for a while now while working on my new game. I don’t know how this would work. How would this work?

My ban GUI works, yes it kicks them if you ban them while they’re in your server, but not if they’re in any other server, and also kicks them when they try to join back, saying they’re banned.

How would I make it kick them in any server?

data stores. put them in a data store, and when they join detect if they are in the banned store, and kick them.

2 Likes

I’m not talking about them joining back, I’m talking about banning them and it kicks them from the server they’re currently in, it only kicks them after they rejoin. Kinda hard to explain.

can i see the script that you kick them in?

You could try to use MessagingService to broadcast to other servers the userId of the banned player, and upon receiving the broadcast, each server checks for that player and kicks them if found

1 Like

that could be simply done using data stores as that broadcasts them once, and as he explained later that he wants them to kick when banned in the same server.

ah my bad i misunderstood, yeh that could be done