How do I make a variable display across all servers

How do I make a variable display across all servers. I want it to be easily updateable and hopefully spam able. Maybe I can do this with a global event.

1 Like

Your wording is a bit vague, but these threads might be helpful to some end:

1 Like

I would use a datastore.

How to set data:

  1. Get Data Store:
local datastore = game:GetService("DataStoreService"):GetDataStore("ValueSharedInServers1")
  1. Saving data. In any server script, write:
datastore:SetAsync("1", "the data you want shared between servers")

And to get the data, in any server script write:

SharedData = datastore:GetAsync("1")

Make sure you have the first code block at the top of every script that handles this! :+1: :smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.