So I stumbled across the parameters of PCALL and wondered how I can use it
it saids first parameter is function and the other one is a tuple
but I don't have a idea on how to use it
For Example
local DataStoreService = game:GetService("DataStoreService")
local myDataStore = DataStoreService:GetDataStore("DataStoreName")
-- getting data
local success, result = pcall(DataStoreService.GetAsync, DataStoreService, "Gay")
if success then
print('G')
-- do something to result
else
-- result is the error message
end
But if I tried
DataStoreService.GetAsync
Outside Pcall it would error
