local ds = game:GetService("DataStoreService"):GetGlobalDataStore("Valor")
game.Players.PlayerAdded:connect(function(player)
local stats = Instance.new("IntValue", player)
stats.Name = "leaderstats"
local valor = Instance.new("IntValue", stats)
valor.Name = "Valor"
if ds:GetAsync(player.userId) ~= nil then
valor.Value = ds:GetAsync(player.userId)
end
while true do
ds:SetAsync(player.userId,valor.Value)
end
end)
Lookie here,
I've been reviewing the wiki, watching YouTube videos, and checking out other developers' uncopylocked games for hours now.
So help would be GREATLY appreciated.
So the purpose of this script is to save the IntValue "Valor", which it does. However, the catch is I am trying to save it across several games.
What I'm looking for here is an explanation as of to how the entire universe thing works, and as of to how to make this work across several games.

1 comment
Tip: Make it while wait() do. If it doesn't wait, it'll crash your game.