This is pretty urgent, as all my games rely on sending info from servers. Everything worked perfectly fine until about 20 minutes ago when, suddenly, everything just stopped. The worst part is there’s no errors or anything. SubscribeAsync is not receiving any info sent from servers. Any idea what’s going on here? Here’s my code:
SERVER:
messagingService:SubscribeAsync("ServerCreated", function(data)
print("received")
for _, v in pairs(data) do
if typeof(v) == "string" then
local folder
for _, f in pairs(game.ReplicatedStorage.TeleportedLobbies:GetChildren()) do
if f.ServerID.Value == v then
folder = f
end
end
if folder then
local tabl = {
["NumPlayers"] = #folder.Players:GetChildren(),
["Checkpoint"] = folder.Checkpoint.Value
}
messagingService:PublishAsync(v, tabl)
folder:Destroy()
end
end
end
end)
OTHER SERVER:
messageService:SubscribeAsync(tostring(game.PrivateServerId), function(data)
local tabl
for _, v in pairs(data) do
if typeof(v) == "table" then
tabl = v
end
end
if tabl then
local numPlayers = tabl.NumPlayers
checkpoint = tabl.Checkpoint
game.ReplicatedStorage.StoredInfo.NumPlayers.Value = numPlayers
game.ReplicatedStorage.StoredInfo.Checkpoint.Value = checkpoint
end
end)
--TELLING LOBBY THAT SERVER HAS BEEN CREATED
messageService:PublishAsync("ServerCreated", tostring(game.PrivateServerId))
Thank you for making this post I thought I was going crazy. Not sure what’s going on but I know my servers are set up correctly so I’m assuming something with the endpoint is down.
Thank god I found this post I was so confused all of a sudden when my script that I haven’t touched in years randomly stopped working, if this doesn’t get fixed soon I can make a bug report.