As the title says, I'm having trouble finding a way to have my datastore automatically update across all servers. Granary1 is an IntValue. I don't really know what else to say as I'm completely new to datastores and trying to learn, but this one's stumped me.
local datastore = game:GetService("DataStoreService")
local valueData = datastore:GetDataStore("GranaryStorage")
local Granary1 = script.Parent.Grain.Granary1
Granary1.Value = valueData:GetAsync(valueData)
Granary1.Changed:Connect(function(Changed)
valueData:SetAsync(valueData, Granary1.Value)
end)

1 comment
Do you mean places instead of servers?