Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont roleplay name show up in FilteringEnabled?

Asked by
snarns 25
7 years ago

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)
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. H4X0MSYT 536 — 7y
0
Sorry. It's a local script in the StarterGUI folder. snarns 25 — 7y

Answer this question