Hello,i m trying to make a place that can share data with another place(the same game but a different place)but i dont know how to start this.Is it possible?
MessagingService. (Guide linked on the page: Cross-Server Messaging) Won’t be in realtime obviously, but it will be close. Roblox does not have anything close at all to webhooks or open socket connections, so it’s not like you can handle events and constantly stream information with little to no latency, but this is as close as you’re going to get (at the moment).
as Wunder_Wulfe said, you should use MessagingService.
I think this articles boosts to your achievement.
Cross-Server Messaging (MessagingService)
Do i Need to make a DataStore script or its save by itself?
Save…? Look at the example on the wiki. You just subscribe to a specific name and anything that is ‘published’ to that name will trigger the event.
No, just transferring a datas between server and another server, so you don’t have to save.
oh,i think i got it,it just send the data to another place,right?
It broadcasts the data to anything that has subscribed to that name within the same game. Please just read the articles as it describes everything very clearly.
Try checking these examples too.
Yeah.
SubscribeAsync(Topic, Callback)
local MessagingService = game:GetService("MessagingService")
local Topic = "DataTransfer"
local Subscription = MessagingService:SubscribeAsync(Topic, function(Message)
print("Fire when someone with in this Topic, sent "..Message.."."
end)
Allows you to connect with that topic.
PublishAsync(Topic, Data)
local MessagingService = game:GetService("MessagingService")
local Topic = "DataTransfer"
MessagingService:PublishAsync(Topic, "Data") -- Data can be dictionary, instance, value, number, string, and almost everything of data.
Can send datas to universe who subscribed to same Topic.
Subscribed:Disconnect()
-- After SubscribeAsync script
Subscription:Disconnect()
Allows you to disconnect.
Does it work with group request?like,automatic group request accept.