This category isn’t for implicitly asking for Scripts, however I can provide an example to using MessagingSeevice.
You’ll need two “topics” which I’m going to name “Ask” and “Reply”, through the Ask you can PublishAaync and the receiving servers will use SubscribeAsync to listen for any.
Then the server that received will use PublishAsync to “Reply” that the awaiting server has used SubscribeAaync on.
Short example I promised:
--// Getting Script
local MessagingService = game:GetService("MessagingService");
MessagingService:SubscribeAsync(function(Info)
local Data = Info.Data; --// Whatever was passed, there's also a Sent property (UNIX time sent)
--// Do what you need to
end)
MessagingService:PublishAsync("Ask");
--// Receiving Script
local MessagingService = game:GetService("MessagingService");
MessagingService:SubscribeAsymc("Ask", function()
MessagingService:PublishAsync("Reply", 1) --// 1 as an example
end)
Make sure not to Reply if the server itself ain’t ready.