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

How do I make Overhead Group Ranks?

Asked by 3 years ago

I am making a USMC group, and I need overhead group ranks. But I want to so the main group rank appears above your head, then a division rank below your group rank. But I want Headquarters, which are in multiple divisions, to not have the division group rank.

0
I know how to script a gorup rank, but I don't know how to script it with divisions following Mobzillaz 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

(I know you know how to script the group rank itself but i'm going to write out the whole thing regardless)

+Place a script inside ServerScriptService

+Place a BillboardGui inside the script

+Place a TextLabel inside the BillboardGui

Place this inside the script:

local groupId = 6537012--Your group


game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        local GuiClone = script.OverheadGui:Clone()
        GuiClone.Parent = Character.Head

        local InformationLabel = GuiClone.InformationLabel

        local PlayerRank = Player:GetRoleInGroup(groupId)
        InformationLabel.Text = Player.Name .. "               ".."              " .. PlayerRank
    end)
end)

Result: https://gyazo.com/cf547f588d0c67e803f357ae3fba65a9

Ad

Answer this question