How can I see wich role a user has?

Hello DevForum!

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.
Schermafbeelding 2025-08-31 103127
(It should print ice parlour & test)
Current code I have to see if it prints my 2 roles:

wait(30)
print('Role:'..game.Players.LocalPlayer:GetRoleInGroup(game.CreatorId))

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.

Thanks,
Jopio

What are these new roblox roles? Is there a post on them?

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.

I linked it in the post above. I found it

Roblox, the masters of UX. Had trouble assigning someone to one of these roles…

I seem to have the same problem as you. I’ll see if I can figure it out.

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.

Ong, thanks I guess, that is soooo stupid!!
I’ll mark it as solution for now.

2 Likes

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.

omg why is this so hard.
I do not understand how https things work but ill try atleast ty

Yeah its very annoying and confusing, but this is currently the most accurate way. And also it says its in beta.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.