DR1FTTR
(everett)
March 11, 2021, 7:21pm
#1
Im making a sign with the amount of members I have here in my group: Meta Shades - Roblox , but I cant seem to get the amount of members. I know it has to do with HTTPS but im new to this so anything helps. Ive also looked everywhere and nothing is working.
Code for now:
local groupID = "8564775"
local HttpService = game:GetService("HttpService")
print(game.HttpService:JSONEncode(HttpService:GetAsync("https://groups.roblox.com/v1/groups/" .. tostring(groupID))).memberCount)
1 Like
sjr04
(uep)
March 11, 2021, 7:24pm
#2
HttpService can’t send any requests to *.roblox.com or roblox.com itself.
You’ll need to use a proxy, for example https://rprxy.xyz
2 Likes
DR1FTTR
(everett)
March 11, 2021, 7:24pm
#3
Thats another thing, I dont understand how to do that lol.
Then I recommend watching a video about httpservice, or reading the article on the devhub
3 Likes
DR1FTTR
(everett)
March 11, 2021, 10:14pm
#6
Ive already tried this it doesent work.
Jxl_s
(Jxl_s)
March 11, 2021, 10:14pm
#7
What @sjr04 meant was that you can use rprxy.xyz to get the group
info. Instead of sending the request to https://groups.roblox.com/groups/v1/${groupId} send it to https://groups.rprxy.xyz/v1/groups/${groupId}
DR1FTTR
(everett)
March 11, 2021, 10:20pm
#8
It says that it doesent exist as a HTTP
Jxl_s
(Jxl_s)
March 11, 2021, 10:21pm
#9
Did you enable http service?
If you did, it should work properly
This is what it should look like
local groupID = "8564775"
local HttpService = game:GetService("HttpService")
print(game.HttpService:JSONEncode(HttpService:GetAsync("https://groups.rprxy.xyz/v1/groups/" .. tostring(groupID))).memberCount)
DR1FTTR
(everett)
March 11, 2021, 10:23pm
#10
Turns out I wrote it wrong, but now its erroring with “Too Many Requests” even though its just one print not looped.
Do you have other HTTP dependant scripts in your game?
DR1FTTR
(everett)
March 11, 2021, 10:25pm
#12
Yes, getting place visits as well as getting players in game. Ill try optimizing.
DR1FTTR
(everett)
March 11, 2021, 10:27pm
#13
I fixed that issue now theres another one. Its printing nil then an actual number.
Jxl_s:
game.HttpService
Try changing this to the HTTP service defined value instead of game.HTTPService.
DR1FTTR
(everett)
March 11, 2021, 10:31pm
#15
Now its not printing anything lol.