function module.GetData(W,O,w,V)return module:DataStoreRetry(w,function()return O:GetAsync(V)end)end function module.DataStoreRetry(V,O,w)local W=0 local q=true local D=nil local c=""repeat W=W+1 q,c=pcall(function()D=w()end)if not q then wait(1)end until W==O or q if not q then end return q,D end return module
-- << FUNCTIONS >>
function module:GetData(dataStore, datastoreRetries, key)
	return module:DataStoreRetry(datastoreRetries, function()
		return dataStore:GetAsync(key)
	end)
end

function module:DataStoreRetry(datastoreRetries, dataStoreFunction)
	local tries = 0
	local success = true
	local data = nil
	local errorMsg = ""
	repeat
		tries = tries + 1
		success, errorMsg = pcall(function()
			data = dataStoreFunction()
		end)
		if not success then
			wait(1)
		end
	until tries == datastoreRetries or success
	if not success then
		--warn("HD Admin | Could not access DataStore | ".. tostring(errorMsg))
		-- Cannot access DataStore
	end
	return success, data
end

return module
