I made a post on how to make your own proxy in about 10 minutes so if you follow that then all you would need to do is
local https = game:GetService('HttpService')
local ProxyUrl = "ProxyNameHere".."?link="
local GroupId = groupId
local Url = "groups.roblox.com/v1/groups/"..GroupId
local EncodedUrl = https:UrlEncode(Url)
local Response = https:GetAsync(ProxyUrl..EncodedUrl)
Response = https:JSONDecode(Response)
local MemberCount = Response.memberCount
print(MemberCount)
Then just wrap that in a while loop for every 30 seconds? (because of rate limits)
local https = game:GetService('HttpService')
local GroupId = groupId
local Url = "https://groups.roproxy.com/v1/groups/"..GroupId
local Response = https:GetAsync(Url)
Response = https:JSONDecode(Response)
local MemberCount = Response.memberCount
print(MemberCount)
he shows everything,… i did what he said and set up my own proxy… heres the module:
--Original code by Brad_Sharp, modified by FromLegoUniverse
--The variable below is the ID of the script you've created, you won't need
--to enter any information other than this.
local ScriptId = "AKfycbytIC5S0IOSjeFL_qaGccxvTAjkE87ZSGgUziR23EMo0xMzUOEWcBml0JqJYzoqj_V5Kg"
--Only modify below if you know what you are doing.
local Url = "https://script.google.com/macros/s/" .. ScriptId .. "/exec"
local HttpService = game:GetService'HttpService'
local Module = {}
function JSONDecode(JSON)
local JSONTable = {}
pcall(function ()
JSONTable = HttpService:JSONDecode(JSON)
end)
return JSONTable
end
function Module:GetAsync(Link)
local JSON = HttpService:GetAsync(Url .. "?q="..game.HttpService:UrlEncode(Link))
local Result = JSONDecode(JSON)
if Result.result == "success" then
return Result.response
else
warn(tostring(Link).." failed to fetch because "..tostring(Result.error))
return
end
end
return Module
and heres the code of the script requiring it:
local HttpProxy = require(game.Workspace.HttpProxyService:Clone()) --Requires the module. Location will vary by where you place it
GroupId = 184949932276
Members = game.HttpService:JSONEncode(HttpProxy:GetAsync("https://groups.roblox.com/v1/groups/" .. tostring(GroupId))).memberCount
UMMM OOPS I MEANT THIS IS THE CODE REQUIRING THE MODULE… sorry
local HttpProxy = require(game.Workspace.HttpProxyService:Clone()) --Requires the module. Location will vary by where you place it
GroupId = 184949932276
Members = game.HttpService:JSONEncode(HttpProxy:GetAsync("https://groups.roblox.com/v1/groups/" .. tostring(GroupId))).memberCount
umm to be honest I don’t really know how that google scripts work and what packages they use. I am only good with express.js however it does look like it should be working
try replacing the bit "result": "error" with "result: e