local DSS = game:GetService("DataStoreService")
local DataStore = DSS:GetDataStore("Server_DataStore")
local Method = "RemoveAsync"
local success, error = pcall(function()
DataStore[Method]("89587322_Creation_1")
end)
if not success then
warn(error)
return
end
print("Remove Successful")
I get this error
Expected ':' not '.' calling member function RemoveAsync
and when I put a colon before the [Method] I get this error
Expected identifier when parsing method name, got '['
I’m doing this to simplify calling different methods such as SetAsync, RemoveAsync, GetAsync etc without having to make a new function. Is it possible?