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)
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.