Only use this when you have a player not in game who's rank you want to check, otherwise use player:GetRankInGroup()
The reason it isn't working is because the link you're trying to get is invalid.
Try pasting it into your browser and you'll see that it'll return this error code:
{"errors":[{"code":0,"message":"Something went wrong with the request, see response status code."}]}
the api you're looking for is http://api.rprxy.xyz/users/UserId_Goes_Here/groups
#Code Example
local HttpService = game:GetService("HttpService")
local userId = 20111088
local groupToLookFor = "Splatoon"
local isInGroup = false
local response = HttpService:GetAsync("http://api.rprxy.xyz/users/" .. userId .. "/groups")
local playersGroups =HttpService:JSONDecode(response)
for _, group in pairs(playersGroups) do
if group.Name == groupToLookFor then
isInGroup = true
print("players rank in group: ", group.Rank)
return
end
end
2 comments
I just realized I misread the title. You want to check their rank in the group. I edited so it'll do that
pls respond