I've consulted the wiki several times but I'm new so I don't know how to fix it properly. If you set a roleplay name, you would be able to see it but no one else can. What can I do to fix that?

script.Parent.FocusLost:connect(function(enter)
	if enter then
		local v = game.Players.LocalPlayer
		for a, mod in pairs(v.Character:children()) do
			if mod:findFirstChild("NameTag") then
				v.Character.Head.Transparency = .99 mod:Destroy()
			end
		end

		local char = v.Character
		local mod = Instance.new("Model", char)
		mod.Name = script.Parent.Text
		local cl = char.Head:Clone()
		cl.Parent = mod

		local hum = Instance.new("Humanoid", mod)
		hum.Name = "NameTag"
		hum.MaxHealth = 0
		hum.Health = 0

		local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head
		char.Head.Transparency = 1
	end
end)

2 comments

0

Like i've said many times before, please be more specific. Server scripts and local scripts have a big difference in this case, and so does filtering enabled. Please provide such information.

0

Sorry. It's a local script in the StarterGUI folder.