Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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)
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. palav 104 — 4y
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. charlesg9 5 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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.

Ad

Answer this question