So I'm not good at scripting, terrible actually, and I've been looking for a good 20 minutes but I can't find anything that'll give me the exact thing I want.

I'm creating a military game and I want your rank to be under your name and then your division to be under that. If that confusing I'll upload and image to give a reference to what I'm looking for.

This is a script I have found but it doesn't work. Like the Nametag isn't even showing but it doesn't say there's an error.

game.Players.PlayerAdded:Connect(onPlayerRespawned)

function onPlayerRespawned(newPlayer)

wait(0.01)

local gui = script.Rank:clone()

gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head

local texta=gui.Frame.PlayerRank
texta.Text = (newPlayer:GetRoleInGroup(8303011))

local textb=gui.Frame.PlayerName
textb.Text = newPlayer.Name

wait(.001)

-- Departments

if newPlayer.TeamColor == game.Teams["Fleet Forces Command"].TeamColor then

	texta.Text = (newPlayer:GetRoleInGroup(N/A))

	--		texta.TextColor3 = Color3.new(255, 176, 0)

elseif newPlayer.TeamColor == game.Teams["Second Fleet"].TeamColor then

	texta.Text = (newPlayer:GetRoleInGroup(8779247))

	--		texta.TextColor3 = Color3.new(255, 176, 0)

elseif newPlayer.TeamColor == game.Teams["Judge Advocate General's Corps"].TeamColor then

	texta.Text = (newPlayer:GetRoleInGroup(N/A))

	--		texta.TextColor3 = Color3.new(39, 70, 45)

elseif newPlayer.TeamColor == game.Teams["Recruit Training Command"].TeamColor then

	texta.Text = (newPlayer:GetRoleInGroup(7678300))

	--		texta.TextColor3 = Color3.new(163, 75, 75)

function onPlayerEntered(newPlayer) newPlayer.Changed:connect(function (property) if (property == "Character") then onPlayerRespawned(newPlayer) end end) end

game.Players.PlayerAdded:connect(onPlayerEntered)

This is what I am kinda looking for:

So it turns out I'm not that good at uploading photos.

I'll just type what I like am looking for.

(Name)

(Rank)

(Division)

Example:

SunnyFlower_Day

Admiral, CNO

Navy Headquarters

I hope that helps!

Any help would be greatly appreciated!

1 comment

0

Use a BillboardGUI.