Hey fellow developers, I created a custom nametag that appears to only work on non-Rthro characters. I have no idea why but my friend and I were testing this. Let me know if anybody knows a solution, thanks.
No errors, it just doesn’t display on Rthro characters’ heads
local Nametag = ServerStorage.Nametag
local GroupId = 14428521 -- Double Whammy Studios
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Head = Character:FindFirstChild('Head')
local Humanoid = Character:FindFirstChild('Humanoid')
local NewNametag = Nametag:Clone()
local NewName = NewNametag:WaitForChild('Upper')
local NewRank = NewNametag:WaitForChild('Lower')
Humanoid.DisplayDistanceType = 'None'
Humanoid.HealthDisplayType = 'AlwaysOff'
NewName.Text = Player.DisplayName
NewRank.Text = Player:GetRoleInGroup(GroupId)
NewNametag.Parent = Head
NewNametag.Adornee = Head
if Player:IsInGroup(GroupId) then
NewRank.Visible = true
if Player:GetRankInGroup(GroupId) > 235 then
NewRank.TextColor3 = Color3.fromRGB(0, 170, 255)
end
end
end)
end)```
I figure it’s probably some issues with Rthro Characters’ that are causing this. Try setting the parent of the nametag to the HumanoidRootPart and adjust the offset.