Datastore not updating on other servers?

I am using a dataStore is hopes for a cross-Server display billboard. When I SetAsync this datastore to a new Text, the billboard text should update as well.

But, the issue is, when I run a SetAsync from the game in the DevConsole, it only updates in the server I called it in, not the other servers. GetAsync() Appears to not be getting the new value I set on the dataStore in other servers? How can I make a dataStore replicate to other servers after being set on another server?

Get Code:

local DataStoreService = game:GetService("DataStoreService")
local dataStore = DataStoreService:GetDataStore("Award")
local lastScreen = dataStore:GetAsync("Award")

while wait(3) do
	local AwardText = dataStore:GetAsync("Award")
end
2 Likes

Use :OnUpdate instead.

5 Likes

Gotta love caching

1 Like

Anyway to bypass that or make it work :stuck_out_tongue:

:OnUpdate

1 Like

I tried but it still being stubbern oof

Show your code (or an example). OnUpdate is working fine for me. By showing your code it can help explain why your code isn’t working.

2 Likes

Wrap those calls in a pcall!

1 Like