Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to detect group info?

Asked by
xAtom_ik 574 Moderation Voter
8 years ago

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

Log in to vote
1
Answered by 8 years ago

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

0
Thanks alot! xAtom_ik 574 — 8y
0
You're welcome ! XToonLinkX123 580 — 8y
Ad

Answer this question