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

This Rank GUI won't show the correct rank, know how to help?

Asked by 4 years ago

I made a rank GUI that works perfectly, it changes your name color to your team, and presents your rank to the main group, but I want it to change your "rank" depending on the team. I tried to make it so that if you are on a different team, it will display your rank from a different group. I attempted to somewhat duplicate the first line of coding, as that is what made it work. I even made a new value that is used to represent the other rank. Anybody know how to make it work? Code:

namey = script.Parent.Holder.Namey
player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
group = script.Parent.Holder.Group
groupID = script.Parent.GroupID.Value

if player:IsInGroup(groupID) then
    group.Text = player:GetRoleInGroup(groupID)
end

if player.Team = ("Test")
then groupID = script.Parent.GroupIDB.Value

namey.Text = script.Parent.Parent.Name
namey.TextColor = player.TeamColor
0
Edit: namey is the text label used to identify the name of someone if you were wondering. Group is the text label used to identify the rank in the group. satrasatra 8 — 4y
0
Great Question! NotFrindow 346 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Consider using this script: https://web.roblox.com/library/858275957/Group-Ranking-Script and insert it into the Workspace and change the group ID in the script and each player in game will be given their rank in the group. Hopefully this works I haven't tried it yet but it has more likes than dislikes and most likely works.

alert("CheckeredDev + " is awesome!");

:D

0
That isn't what I meant, the actual GUI works, but I want depending on what team the person is on, to change which group rank they have, for example if they are on the police team, I want it to show their rank in the police group instead of when they are on the citizen team, it shows their rank in the main group. satrasatra 8 — 4y
0
I have the link to what I have on the rank GUI, but I want it to change what group ID shows on it depending on your team, the GUI does work, it will just show you rank as [Guest] because you are not in the group. link: https://web.roblox.com/games/4465545155/Overhead-GUI-Example satrasatra 8 — 4y
Ad

Answer this question