game.Players.PlayerAdded:Connect(function(C)DataStore:Load(C)end)game.Players.PlayerRemoving:Connect(saveOnExit)game:BindToClose(function()for C,v in ipairs(game.Players:GetPlayers())do saveOnExit(v)end end)return DataStore
-- 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
