I've been recently trying to figure out how to make a live member group count in-game but it prints off the error
21:53:49.534 - Workspace.Part.SurfaceGui.Script:5: attempt to index a nil value 21:53:49.535 - Stack Begin 21:53:49.535 - Script 'Workspace.Part.SurfaceGui.Script', Line 5 - global getGroupSize 21:53:49.535 - Script 'Workspace.Part.SurfaceGui.Script', Line 11 21:53:49.535 - Stack End
I think this is due to the proxy just not existing anymore, but if I can get any help on this that would be helpful because I cannot find any other proxies that work with this. This is my code:
function getGroupSize(groupId) local groupLink = "http://www.roproxy.tk/My/Groups.aspx?gid=" .. groupId local html = game:GetService("HttpService"):GetAsync(groupLink, true) local pattern = [[<div id="MemberCount">Members: %d+</div>]] local size = tonumber(html:match(pattern):match("%d+")) return size end print(getGroupSize(3101776))
I am using the script from https://scriptinghelpers.org/questions/17476/is-there-a-function-that-can-return-the-number-of-members-a-group-has but I cannot get a working answer from that.