-- Connections

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
