This script makes my player rank show up as '252' when on the Dark Blue team. Why is this?
Asked by
4 years ago Edited 4 years ago
01 | local BBGUI = game.ServerStorage.BillboardGui |
05 | game.Players.PlayerAdded:Connect( function (player) |
06 | player.CharacterAdded:Connect( function (character) |
07 | if player.TeamColor.Name = = "Deep orange" then |
08 | local CGUI = BBGUI:Clone() |
09 | CGUI.TextLabel.Text = player.Name.. "\n" .. "Inmate" |
10 | CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head |
11 | elseif player.TeamColor.Name = = "Dark blue" then |
12 | local CGUI = BBGUI:Clone() |
13 | CGUI.TextLabel.Text = "[CLASSIFIED]" .. "\n" ..player:GetRankInGroup(GID) |
14 | CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head |
When I switch over to the Dark blue team, the rank shows up as '252'.