If I change a code in one server will it change it for other servers too?

I am trying to communicate between servers. How can I do that?. I am going to make a table if I change that table in one server will it change it for other servers too? I look at MessagingService.

You should use Messaging service but it totally depends on what you are trying to send and how you are receiving it

1 Like

You need to use MessagingService

local MyTable = {}

function Change()
    table.insert(MyTable,#MyTable+1,"Hello")
    --Your code where you change the contents of the table
    -- After changing it Publish it to the server
    MessagingService:PublishAsync("TableChange",MyTable) -- You can name the topic [ First agument ] anything you want
end

Change() --Calling it

MessagingService:SubscribeAsync("TableChange",function(NewTable) --Be sure to use the same topic
    MyTable = NewTable --Overwrite the old variable
end)

Hope this helped

1 Like