Is it possible to detect if a group ID is valid or nil?
✓ ANSWER ACCEPTED
Check if groupID exists or is nil?
1 answer
✓ Accepted answer
Yes, hopefully this helps!
local GS = game:GetService("GroupService")
local s,f = pcall(function()
isGroup = GS:GetGroupInfoAsync( random group number )
end)
if s then
print('group is found!!!')
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
