Output keeps reading an error “GroupService:GetGroupInfoAsync() failed because HTTP 404 (Not Found).” I couldn’t find much on the web that referenced this error. Other solutions say that in-game group ranks won’t work on the local test server inside of Roblox Studio, but it would work in the regular game server.
local groupService = game:GetService("GroupService")
local colors = {
Member = Color3.fromRGB(79, 255, 135),
Respected = Color3.fromRGB(40, 21, 255),
Moderator = Color3.fromRGB(255, 179, 25),
Artist = Color3.fromRGB(255, 98, 248),
Modeler = Color3.fromRGB(255, 244, 79),
Administrator = Color3.fromRGB(136, 0, 255),
CEO = Color3.fromRGB(255, 0, 4)
}
function updateTag(char, inGroup, groupRole)
if char and char:FindFirstChild("Head") then
local roleGui = char.Head:FindFirstChild("RoleGui")
if inGroup then
if not roleGui then
roleGui = game.ReplicatedStorage.RoleGui.RoleGui:Clone()
roleGui.Parent = char.Head
end
roleGui.TextLabel.Text = groupRole
roleGui.TextLabel.TextColor3 = colors[groupRole] or roleGui.TextLabel.TextColor3
else
if roleGui then
roleGui:Destroy()
end
end
end
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
spawn(function()
while true do
local groups = groupService:GetGroupInfoAsync(player.UserId)
local inGroup = false
local groupRole
for key, group in pairs(groups) do
if group.Id == 9248561 then
inGroup = true
groupRole = group.Role
break
end
end
updateTag(char, inGroup, groupRole)
wait(5)
end
end)
end)
end)
It’s a normal script located inside the ServerScriptService.
**Edit: uploaded wrong script