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

Why is this script not working?

Asked by 9 years ago

So this is a script that is supposed to hide your name and put a billboard GUI instead that is only visible to your teammates. Everything works, except for the part of the script where it creates and edits it, and I don't know why, as output didn't give me anything. Can someone please help me? Here's the script:

    local NewP = game.Players.LocalPlayer
    local Findy = NewP.Character:FindFirstChild("Body Colors")


function spn(NewP) 

    wait()
    local mesh = NewP.Character.Head:findFirstChild("Mesh")
    Part = Instance.new("Part") 
    Part.Name = "Fake" 
    mesh:Clone().Parent = Part 
    w = Instance.new("Weld") 
    w.Parent = NewP.Character.Head
    w.Part0 = w.Parent 
    w.Part1 = Part 
    Part.FormFactor = 0 
    Part.Size = Vector3.new(2,1,1) 
    Part.Parent = NewP.Character 
    Part.BrickColor = Findy.HeadColor
    NewP.Character.Head.Transparency = 1
    mesh:Clone().Parent = NewP.Character.Head

Answer this question