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

Is it possible to detect group info?

I am making a group place. I am also trying to make it so it can detect some things In the main group. However, I am not sure how and if it is even possible.

Please could you help me!

1 answer

✓ Accepted answer

You can go on on ROBLOX wiki and using an Service name GroupService

You can use this like that

local groupId = 377251
local group = game:GetService("GroupService"):GetGroupInfoAsync(groupId)
 
print(group.Name .. " has the following roles:")
for _, role in ipairs(group.Roles) do
   print("Rank " .. role.Rank .. ": " .. role.Name)
end

I take this from wiki, if you want ot know more about GroupService or GroupInfo You can go on roblox wiki here

2 comments

0

Thanks alot!

0

You're welcome !

This discussion is preserved as it was. New answers, comments, and votes are closed.