Advertisement
HowToRoblox

GroupInfoScript

Mar 29th, 2020
1,783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. local groupId = 2929563
  2.  
  3.  
  4. local groupData = game:GetService("GroupService"):GetGroupInfoAsync(groupId)
  5.  
  6.  
  7. local httpService = game:GetService("HttpService")
  8.  
  9. local url = 'https://groups.rprxy.xyz/v1/groups/' .. groupId
  10.  
  11.  
  12. while wait(5) do
  13.    
  14.    
  15.     local memberCount = httpService:JSONDecode(httpService:GetAsync(url)).memberCount
  16.  
  17.  
  18.     script.Parent.MemberCount.Text = "🔴[LIVE] Members: " .. memberCount
  19.  
  20.  
  21.     script.Parent.GroupImage.Image = groupData.EmblemUrl
  22.     script.Parent.GroupName.Text = groupData.Name
  23.     script.Parent.GroupDescription.Text = groupData.Description
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement