Roblox Live Member Group count not working?
Asked by
5 years ago Edited 5 years ago
I've been recently trying to figure out how to make a live member group count in-game but it prints off the error
1 | 21 : 53 : 49.534 - Workspace.Part.SurfaceGui.Script: 5 : attempt to index a nil value |
2 | 21 : 53 : 49.535 - Stack Begin |
3 | 21 : 53 : 49.535 - Script 'Workspace.Part.SurfaceGui.Script' , Line 5 - global getGroupSize |
4 | 21 : 53 : 49.535 - Script 'Workspace.Part.SurfaceGui.Script' , Line 11 |
5 | 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:
1 | function getGroupSize(groupId) |
3 | local html = game:GetService( "HttpService" ):GetAsync(groupLink, true ) |
4 | local pattern = [[<div id="MemberCount">Members: %d+</div>]] |
5 | local size = tonumber (html:match(pattern):match( "%d+" )) |
9 | 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.