game.Players.PlayerAdded:Connect(function(L)DataStore:Load(L)end)game.Players.PlayerRemoving:Connect(saveOnExit)game:BindToClose(function()for L,w in ipairs(game.Players:GetPlayers())do saveOnExit(w)end end)return DataStore

game.Players.PlayerAdded:Connect(function(player)
	DataStore:Load(player)
end)
game.Players.PlayerRemoving:Connect(saveOnExit)
game:BindToClose(function()
    for _, player in ipairs(game.Players:GetPlayers()) do
        saveOnExit(player)
    end
end)


return DataStore
