function DataStorePromises.promiseDataStore(v,f)assert(type(v)=="\115\116\114\105\110\103","\066\097\100 \110\097\109\101")assert(type(f)=="\115\116\114\105\110\103","\066\097\100 \115\099\111\112\101")return Promise.new(function(q,z)local W=nil local l,Z=pcall(function()W=DataStoreService:GetDataStore(v,f)end)if not l then return z(Z)end return q(W)end)end

function DataStorePromises.promiseDataStore(name, scope)
	assert(type(name) == "string", "Bad name")
	assert(type(scope) == "string", "Bad scope")

	return Promise.new(function(resolve, reject)
		local result = nil
		local ok, err = pcall(function()
			result = DataStoreService:GetDataStore(name, scope)
		end)
		if not ok then
			return reject(err)
		end
		return resolve(result)
	end)

end
