Hey there,
So I’ve been trying to make a ’ live group members count’, and I somehow keep getting this error :
Code:
--Services
local Replicated = game:GetService("ReplicatedStorage")
local Storage = game:GetService("ServerStorage")
local Lighting = game:GetService("Lighting")
local Market = game:GetService("MarketplaceService")
local Space = game:GetService("Workspace")
local MainFolder = workspace:FindFirstChild("Game")
local School = MainFolder:FindFirstChild("School"):FindFirstChild("School")
local Http = game:GetService("HttpService")
local GroupID = 9854805
local function GetGroupMembers(ID)
local Link = "http://www.roproxy.tk/My/Groups.aspx?gid="..ID
local html = Http:GetAsync(Link, true) -- issue occurs here
local pattern = [[<div id="MemberCount">Members: %d+</div>]]
local size = tonumber(html:match(pattern):match("%d+"))
School.Decoration.Announcements.GroupBoard.Info.Members.SurfaceGui.TextLabel.Text = size
print(size)
return size
end
spawn(function()
while task.wait() do
GetGroupMembers(GroupID)
end
end)