Guys i need to know how can i block an server that already subscribe to an async of publishing one? i was making an banner system and every time that an server was opened he just update all the other ones server banners i tried it on the past week and i already achive the game but i rlly need an help on this
what i have tried
local MSS = game:GetService("MessagingService")
local remote = game.ReplicatedStorage.RemoteEvent
local ez = {
"a",
"b",
"c"
}
local function PublishAsync()
MSS:PublishAsync("Banner", ez)
end
local sucess, err = pcall(function()
MSS:SubscribeAsync("Banner", function(Banner)
local nomes = Banner.Data
local aleatorio = nomes[math.random(1,3)]
remote:FireAllClients(aleatorio)
end)
end)
if sucess then
print("ez")
end
if err then
spawn(PublishAsync)
end