Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Check if groupID exists or is nil?

Is it possible to detect if a group ID is valid or 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.