Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

In-Game group rank not working, what is the issue?

So I have this group rank system on the leaderboard allowing players to see what rank a player is in my group. It works fine in studio, but the ranks show up as ¨Guest¨ In-Game. Any idea why? P.S: My game isn't a group game yet.

print 'Hello world!'
function added(player)
local ls = Instance.new("IntValue")
ls.Name = "leaderstats"

local role = Instance.new("StringValue")
role.Name = "Rank"

role.Value = player:GetRoleInGroup(5531317)

ls.Parent = player
role.Parent = ls
end
game.Players.PlayerAdded:connect(added)

2 comments

0

Make sure that the games version is the same as Studio. I do this by just adding a random part somewhere, publishing, and checking if it's in the game.

0

I tried adding the script from another group of mine, it works with that groups ID. But when I try it with my current group ID, it puts everyone as guest.

1 answer

I tried adding the script from another group of mine, it works with that groups ID. But when I try it with my current group ID, it puts everyone as guest.

This discussion is preserved as it was. New answers, comments, and votes are closed.