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

False Heads: How to change the shape?

Asked by 9 years ago

I have a script(below) that makes a fake head within the character so that the nametag and healthbar are invisible. I am clueless on how I would change the shape of the fake head to the shape of the real one. For example, my character's head is Roundy, a spherical head. When I run the script it changes my head back to the default one. I don't know how I would change the fake head to be the shape of the real one(which is transparent at this point). I tried changing the mesh to spherical, not the right shape, tried exactly cloning the mesh, didn't work. I can't seem to figure it out.

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
    local fake = character.Head:Clone()
    local neck = character.Torso.Neck:Clone()
    character.Head.Transparency = 1
    fake.Parent = character
    fake.Name = "FakeHead"
    neck.Parent = character.Torso
    neck.Part0 = character.Torso
    neck.Part1 = fake
        if fake:FindFirstChild("face") then
            fake.face:Destroy()
        end
    script.ChangeColor:Clone().Parent = fake
    fake.ChangeColor.Disabled = false
    end)
end)

1 answer

Log in to vote
1
Answered by 9 years ago

So far ,there's no real way to do that.

LUCKILY FOR YOU, THOUGH, you're overcomplicating it. You don't need to mess with the head at all!

There's a new service: StarterPlayer. That's where you can set the properties for any player that joins the game. Two of those properties are NameDisplayDistance and HealthDisplayDistance. Those properties change the distance other players can view another player's name, and the distance for the health, respectively.

So all you have to do is set both of those to 0 inside the StarterPlayer properties, and you're good! I tested this, it works.

Hope I helped!

Ad

Answer this question