I want to make sure what my datastore returns is a table and if it is anything else to just ignore it. Would :IsA work? If so I dont know how to make that work. I dont need you to write me any code. I just want to know an operator or something that would check. Thank you in advance.
You can use an if statement like this:
local data = DataStore:GetAsync("key") if not data then data = {} end
But you can also use the or
operator instead
local data = DataStore:GetAsync("key") or {}
It will set the variable to {}
if GetAsync() returns nil
Oh and if you want to check specifically for a table, use typeof()
local data = DataStore:GetAsync("key") if typeof(data) ~= "table" then return end