Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Datastore is not saving cross servers?

Asked by 5 years ago
--stuff here above works fine
    print("Announcement has been fired on this very server!")
local DataStore = game:GetService("DataStoreService"):GetDataStore("AnnouncementService")
    DataStore:SetAsync("MESSAGE", TextorID)
    DataStore:SetAsync("PlayerID", Value)
    DataStore:SetAsync("TimeWait", Time)
end
end)


-------------------------------------------------------------------------------------------------------------
local DataStore = game:GetService("DataStoreService"):GetDataStore("AnnouncementService")

local function Announce(MSG)
local ID = DataStore:GetAsync("PlayerID")
local Wait = DataStore:GetAsync("TimeWait")
game.ReplicatedStorage.SimpleGuardAnnouncement:FireAllClients(MSG,ID,Wait)
end

DataStore:OnUpdate("MESSAGE", Announce)

It works fine on the local server just not cross servers.

This is my version of the script that's why I am reposting sorry.

I even tried to get rid of

DataStore:SetAsync("PlayerID", Value)
DataStore:SetAsync("TimeWait", Time)

Because of throttling.

0
Sorry for the re-post it's my version of the script TheSimplePixel 5 — 5y

Answer this question