Skip to content

How do I fix this error when using setRank(...)? #2

Description

@cityofbayawan

Hi. I'm using the roblox-js-server api and when I use the setRank method like so api.setRank(player.UserId, GroupID, 12) is says that the role aka the last thing in the argument does not exist.
In the docs it says to use it like api.SetRank(GroupID, UserId, RoleID) however, when I do it that way I get

"Set rank failed: Target user 3272666 is not in group 327266"
For some reason, the user id that I put is being ignored and it's just using the group id as the user id. Anyone know how to fix this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions