function api.check(player)
local Player_Key = (DataStoreKey.."_"..player.userId)
local Player_Data = Datastore:GetAsync(Player_Key)
if Player_Data then
return true
else
return false
end
end
Error: GetAsync is not a valid member of DatastoreService

3 comments
Change DatastoreService to DataStoreService
I have it like this local Datastore = game:GetService("DataStoreService")
Did you use the GetDataStore() Method? Like this: local DataStore = game:GetService("DataStoreService"):GetDataStore('DataStoreNameHere")