Is it possible to create a global counter so a counter with the same number on all servers (This counter is to show how many minigames have been loaded in total)
What i have:
local key = 1234
local ds = game:GetService("DataStoreService"):GetDataStore("Test")
function UpdateValue()
if ds:GetAsync(key) then
ds:SetAsync(key, ds:GetAsync(key) + 1)
end
end
--this part is just for testing--
wait ()
while true do
wait (1)
UpdateValue()
end
for some reason this script doesnt work

1 comment
When I quit the test, it pops up: Not running script because past shutdown deadline (x263)