I have a script in my game that creates custom nametags and should look like this:
This works when I use it in studio or test it in the full Roblox client. however, whenever I joined using my alt to test it in Roblox, the nametag did not show up. I have also tried to see if it was only on the alts side, but when I joined with my main only my main had the nametag and not the alt. One thing to note though is that I joined using the Microsoft version of Roblox for my alt and I don’t know if that could have messed with it, but I will still need it to work anyways if I’m to release it.
Code:
local rep = game:GetService("ReplicatedStorage")
local nametag = rep:WaitForChild("NameTag")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local head = char:WaitForChild("Head")
local Hum = char:WaitForChild("Humanoid")
local text = nametag:Clone()
local PlayersGUIName = text.GUIName -- There are two parts of the GUI, this one is for the players name
Hum.DisplayDistanceType = "None" -- Turns off the default Roblox nametag
PlayersGUIName.Text = player.DisplayName
text.Adornee = head
text.Parent = head
end)
end)

