I’m wanting to make a system that I can ranklock parts if they have a certain role.
However, I’m unable to get the roles the user has. With roles, I mean the New roblox roles, wich multiple can be added to the same user.
(It should print ice parlour & test)
Current code I have to see if it prints my 2 roles:
I tried searching for answers, on the devforum and on Google. I was unable to find any answer, so I’m asking it here. I also checked the docs, but couldn’t find anything.
I try to stay up to date on all updates, and I haven’t seen anything on Roblox implementing a better roles system. Maybe they silently rolled it out with Forums? I’ll see if I can find it.
edit: Thanks for the link, guess I overlooked that.
Judging by the apparent lack of engine API documentation on this except for Legacy Roles (the :GetRoleInGroup method you are already using) and people in the topic you linked about this update talking about how there is no API for these new roles yet, it appears that you cannot see the roles a user has.
Here is what I found: an API that gets plural amount of roles of a user in a group?
This is most likely the closest you will get to what you are looking for.
Note: This is most likely it. Remember for new APIs you need to get extra things like group membership ID and API Key authorization codes.