local Game = game
local StarterGui = Game:GetService("StarterGui")
local Success, Result = pcall(function() StarterGui:GetCore("GetBlockedUserIds") end)
if not Success then warn(Result) end
if Result then
for _, BlockedUserId in ipairs(Result) do
print(BlockedUserId)
end
end
The purpose of pcall() is to catch errors that can be raised by error-prone code.