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

How would I add filtering to this RP name script so it filters your name if its bad? [closed]

Asked by 6 years ago
script.Parent.FocusLost:connect(function(enter)
    if enter then
        v = game.Players.LocalPlayer
        for a, mod in pairs(v.Character:children()) do
            if mod:findFirstChild("NameTag") then
                v.Character.Head.Transparency = 0 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)


ROBLOX took down my game because this wasn't filtered. How would I add filtering to it??

0
Ah, all the deprecated stuff you can ever find. hiimgoodpack 2009 — 6y

Closed as Not Constructive by hiimgoodpack and PyccknnXakep

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
IcyMizu 122
6 years ago

u want a nametag script?

0
btw u need to add thing in lighting IcyMizu 122 — 6y
0
Yes please! as long as it filters the name! Hellst0rm -3 — 6y
0
Is there a sorta way to put notes on questions like "If you are not posting an explanation, please use a comment." hiimgoodpack 2009 — 6y
Ad