:IsInGroup & :GetRankInGroup not working for my account?

Hello,

Last night I’ve noticed that my account appears to be “bugged” when it comes to group calls and this is happening to all Roblox games (even ones I don’t even own) that uses the :IsInGroup & :GetRankInGroup functions.

Every time, this error appears:

Nothing in code was changed so confused as to why its giving the “Invalid info for group” error. Group Id is correct

3 Likes

Is this from a game you made or is it someone elses game?

The script might be at fault here

this is from a game I made, but no the script is right and has not been changed.

image

but any other game utilizing these functions doesn’t work for me as well

Hmm… You should re-tag this post to bugs. This is clearly something freaky in Roblox’s database or the way :GetRankInGroup() is handled.

I am also having this issue, and have filed a bug report here:

1 Like

This is a roblox bug they have somehow concocted when changing stuff without checking like usual.

As a workaround for now you could try using the web apis. I’ve attached some sample functions on how to use them below.

local HttpService = game.HttpService

local function isInGroup(userid, groupid)
	local data = {}
	xpcall(function(...) 
		data = HttpService:JSONDecode(HttpService:GetAsync(string.format("https://groups.roproxy.com/v2/users/%s/groups/roles", userid))).data
	end, warn)
	for _, group in data do
		if group.group.id == groupid then return true end
	end
	return false
end

local function getRankInGroup(userid, groupid)
	local data = {}
	xpcall(function(...) 
		data = HttpService:JSONDecode(HttpService:GetAsync(string.format("https://groups.roproxy.com/v2/users/%s/groups/roles", userid))).data
	end, warn)
	for _, group in data do
		if group.group.id == groupid then return group.role.rank end
	end
	return 0
end

To get around the HttpService not being able to make requests to roblox.com, I’m using RoProxy, but you can use a different proxy if you like.

Finally, someone else with this issue. Hope this gets fixed soon ^ _ ^

Can i ask how you get Roproxy to work exactly???

As you can see from the functions I’ve provided above, you simply replace roblox.com with roproxy.com.

image
Odd… I dont remember api being like this-

Yes, you have to put a double slash in front of docs. ie: https://users.roblox.com//docs

1 Like

:skull: “i am a great developer” when i cant even use the API correctly :sob:

It’s not you, it’s Roblox’s backend developers.

1 Like

Did they change it??? Because the one i tried was from the Wiki and a post that listed them.