Staff Nametag Issue

Not a scripter but,

image

I’m improvising on a script and I’m trying to add a ‘Staff Team’ nametag for users 8+ in my group, I’m not sure if this script is right (ignore the other scripts, focus on the TextLabel one), if this does work what do I need to add?

(not mine)

1 Like

Add this:

TextLabel.Text = 'Staff Team'
1 Like

Do I replace it with anything? Or do I add it, if so where>

1 Like

Add it underneath Player:GetRankInGroup(Id) > 8

1 Like


Would it be this?

1 Like

Add it underneath the second line, where you clone the TextLabel.

EDIT: To make it visible, you’d also have to set the parent to the character’s head

1 Like


This?

1 Like

Oh, sorry. Let me do that now, do I set the textlabel or surfacegui to the head?

1 Like

Set the TextLabel’s parent to it.

TextLabel.Parent.Parent = Player.Character.Head
1 Like


Sorry for all the screenshots, so this would be correct? Or would I need to add TextLabel.Parent.Parent = Player.Character.Head somewhere else.

1 Like

That should be correct. Try that, tell me if it doesn’t work.

1 Like

Just a quick tip: You should probably give a proper name to both the variable and the TextLabel Instance so it’s clear what it’s supposed to be.

1 Like

Doesn’t work for some reason, let me check the output.

1 Like

1 Like

It might be that the character isn’t loaded in yet.
Try this:

local Char = Player.Character or Player.CharacterAdded:Wait()
TextLabel.Parent.Parent = Char.Head
1 Like


This?

1 Like

You should use a bill board gui instead of a surface gui.

3 Likes

This. I was trying to think of what to do since the problem is with the GUI and not the script and yeah, a BillboardGui should be a step closer to fixing your problem. You would have to adjust its position/offset properties however, keep that in mind.

1 Like

As long the code is good, switching the surface gui to billboard gui should work.

1 Like

That actually makes sense. The script isn’t the issue, it’s the fact you’re using SurfaceGUI rather than BillboardGUI.

1 Like