Group counter script

Can someone help me I’m stuck on this and don’t understand.

local groupId = 13859075

local groupData = game:GetService(“GroupService”):GetGroupInfoAsync(groupId)

local httpService = game:GetService(“HttpService”)

local url = ‘https://groups.roblox.com/v1/groups/’ … groupId

while wait(5) do

local memberCount = httpService:JSONDecode(httpService:GetAsync(url)).memberCount


script.Parent.MemberCount.Text = "0" .. memberCount


script.Parent.GroupImage.Image = groupData.EmblemUrl
script.Parent.GroupName.Text = groupData.Name
script.Parent.GroupDescription.Text = groupData.Description

end

1 Like

local url = ‘https://groups.roblox.com/v1/groups/’ … groupId

You’re unable to make a request from Roblox to roblox, I’d recommend using a proxy of some sort.

I tried

https://groups.rprxy.xyz/v1/groups/

but it Isn’t a thing anymore.

Thx but not big in scripting so what should I use?

You have to replace:
https://groups.roblox.com/v1/groups/GroupId
with:
https://groups.roproxy.com/v1/groups/GroupId