Kick a player from one server, happens in the one the player is in

Hi!

I was trying to make something with the MemoryStoreService that makes it so if somebody kicks a player from one server, it happens on the other server (the server the player is in), and then kicks them.

The issue is, I’m running into a wall as I have never really used MSS.

local PlayersMAP = MemoryStoreService:GetSortedMap("AllPlayersGameWide")

game.Players.PlayerAdded:Connect(function(plr)
	local Succ, IsNew = pcall(function()
		PlayersMAP:SetAsync(plr.Name,plr,3888000)
	end)
	if Succ then print(IsNew) end
end)

That’s the only code I made for it before I got stuck.
Thanks for any help!

I believe this type of question has already been answered,

1 Like

This seems inefficient. Upon further research I found one using MessagingService:

2 Likes