Custom Tags above heads not appearing

I have returned, ya missed me?.. no :frowning: sign*
anyways,
is it somethign to do with the group ranks? they might not be in the group.
also \it might be because of the emojis. is you say
print(string.len("😀text"))
it would print not 5 but more than that.if you say
orint(uft8.len("😀text"))
it would print5, i don’t know. but it is most likley the cause :happy3:

mistake in the message from eariler

hm, maybe try to removing the emojis or you know what i said earlier.
print(tostring("😀"))
well do that, then take the output text then replce the emoji with it, try not to remove any spaces or add any, example:
"😀text" = "1a2b3ctext" not "1a2b3c text"
hope that helps

its probably something to do with emojis but im unable to find a solution to fix it, sorry
maybe you got your spaces in the name wrong?

I’m going to test the waitforchild, I can’t believe I didn’t think of that.
Also, I replaced the emojis with get rank in group now cause that way it cant ever mess up. Thanks for helping!

1 Like
local players = game:GetService("Players")

local server = game:GetService("ServerStorage")
local labels = server.Labels

players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local head = character:WaitForChild("Head")
		local customNameClone = labels.CustomNameGUI:Clone()
		customNameClone.TextLabel.Text = player.DisplayName
		customNameClone.Parent = head
		if player:GetRankInGroup(12434147) == 255 or player.UserId == 1421900113 then
			local displayClone = labels.Founder_Label:Clone()
			displayClone.Parent = head
		elseif player:GetRoleInGroup(12434147):match("Developer$") then
			local displayClone = labels.Dev_Label:Clone()
			displayClone.Parent = head
		elseif player:GetRoleInGroup(12434147):match("UGC Creator$") then
			local displayClone = labels.UGC_Creator_Label:Clone()
			displayClone.Parent = head
		elseif player:GetRoleInGroup(12434147):match("Admin$") then
			local displayClone = labels.Admin_Label:Clone()
			displayClone.Parent = head
		elseif player:GetRoleInGroup(12434147):match("Respected$") then
			local displayClone = labels.Respected_Label:Clone()
			displayClone.Parent = head
		end
	end)
end)

Still wont work, It just doesn’t add the tag, it prints tag added but never adds the tag

Well I removed all of the print commands so nothing should be printed.

If you get an error in console you should share it.

No, I meant in the original script, I tried your’s and it did the same thing

Again, you’re not sharing any error message/details so helping you is nigh impossible.

There are no errors. It simply doesn’t work I had to make it give tags when you move.

I think it has something to do with timing because it doesn’t work unless i make it get added with something other than player added

image

So it’s working for me fine.

local players = game:GetService("Players")

local server = game:GetService("ServerStorage")
local labels = server.Labels

players.PlayerAdded:Connect(function(player)
	player.CharacterAppearanceLoaded:Connect(function(character)
		local head = character:WaitForChild("Head")
		local customNameClone = labels.CustomNameGUI:Clone()
		customNameClone.TextLabel.Text = player.DisplayName
		customNameClone.Parent = head
		customNameClone.Adornee = head
		local displayClone
		if player:GetRankInGroup(12434147) == 255 or player.UserId == 1421900113 then
			displayClone = labels.Founder_Label:Clone()
		elseif player:GetRoleInGroup(12434147):find("Developer") then
			displayClone = labels.Dev_Label:Clone()
		elseif player:GetRoleInGroup(12434147):find("UGC Creator") then
			displayClone = labels.UGC_Creator_Label:Clone()
		elseif player:GetRoleInGroup(12434147):find("Admin") then
			displayClone = labels.Admin_Label:Clone()
		elseif player:GetRoleInGroup(12434147):find("Respected") then
			displayClone = labels.Respected_Label:Clone()
		end
		if displayClone then
			displayClone.Parent = head
			displayClone.Adornee = head
		end
	end)
end)

I wonder if I have game-specific lag?
Can too many connections without disconnecting cause that?

You could try the script I just provided (it’s slightly different from the original one).

is the tag invisible? You say it adds tag but it doesn’t show.

1 Like

I don’t think so cause they work when I add them manually with devconsole

This should go without saying but this is a server script right?

Yes lol. I’m trying your version of the script

repro.rbxm (4.4 KB)

Well I’m not sure what you’re doing wrong but here’s the model file I was working with. It doesn’t have any of the group tags but it has the main one (which I tested with).

It worked! I have no idea why it wasn’t before but it did now! THANK YOU SO MUCH!

Oh, wait, Character appearance loaded. I guess it was just loading the tag too soon before the player

you can try cloning without the if statement checking group role

Otherwise I believe since you test it on only yourself and you are merely the developer role in the group, you will only get that to display

1 Like