Skip to content
Roblox API Reference

GroupService

GroupService is a service that allows developers to fetch information about a Roblox group from within a game.
  • Not creatable
  • Not replicated
  • Service
Memory category
Instances
Own members
8
Inherited members
75
Subclasses
0
Siblings
608

Properties23

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Methods49

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byGroupService7
  • GroupService:GetAlliesAsync(groupId: number): StandardPages
    Returns a StandardPages object including information on all of the specified group's allies.
    • Yields
    • Capabilities: Groups
    Parameters
    ParameterDescription
    groupId: number
    The group's ID.
    Returns
    TypeDescription
    StandardPages
    A StandardPages object containing group information tables for each of the specified group's allies.
  • GroupService:GetEnemiesAsync(groupId: number): StandardPages
    Returns a StandardPages object including information on all of the specified group's enemies.
    • Yields
    • Capabilities: Groups
    Parameters
    ParameterDescription
    groupId: number
    The group's ID.
    Returns
    TypeDescription
    StandardPages
    A StandardPages object containing group information tables for each of the specified group's enemies.
  • GroupService:GetGroupInfoAsync(groupId: number): any
    Returns a table containing information about the given group.
    • Yields
    • Capabilities: Groups
    Parameters
    ParameterDescription
    groupId: number
    The group ID of the group.
    Returns
    TypeDescription
    any
    A dictionary of information about the group.
  • GroupService:GetGroupsAsync(userId: User): { any }
    Returns a list of tables containing information on all of the groups a given player is a member of.
    • Yields
    • Capabilities: Groups
    Parameters
    ParameterDescription
    userId: User
    The Player.UserId of the user.
    Returns
    TypeDescription
    { any }
    An array of dictionaries containing information on the group's the Player is a member of.
  • GroupService:GetRolesInGroupAsync(userId: User, groupId: number): any
    Returns all roles held by the specified user in the specified group, supporting multi-role group membership.
    • Yields
    • Capabilities: Groups
    Parameters
    ParameterDescription
    userId: User
    The user's ID.
    groupId: number
    The group's ID.
    Returns
    TypeDescription
    any
    A table with two fields: IsMember (boolean) and Roles (array of public role tables). Each role table contains Id (integer), Name (string), and Rank (integer). The array is ordered from highest to lowest role.
  • GroupService:PromptJoinAsync(groupId: number): Enum.GroupMembershipStatus
    Prompts the local Player to join a specified Roblox group via a native modal.
    • Yields
    • Capabilities: Groups
    Parameters
    ParameterDescription
    groupId: number
    ID of the group to prompt the player to join. This must be a valid group ID.
    Returns
    TypeDescription
    Enum.GroupMembershipStatus
    GroupMembershipStatus indicating the player's group membership status after the prompt is closed. If the player closes the prompt without joining, this will return GroupMembershipStatus.None or their previous status if they were already a member.
  • GroupService:PromptJoinCompleted(groupId: number,success: boolean,groupMembershipStatus: Enum.GroupMembershipStatus,errorMessage: string,)
    • Roblox script security
    • Capabilities: Groups
    Parameters
    Parameter
    groupId: number
    success: boolean
    groupMembershipStatus: Enum.GroupMembershipStatus
    errorMessage: string

Events11

Inherited fromObject1
Inherited fromInstance9
Defined byGroupService1
  • GroupService.ShowJoinPrompt: RBXScriptSignal<(groupId: number)>
    • Roblox script security
    • Capabilities: Groups
    Parameters
    Parameter
    groupId: number