Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does my humanoid keep dying?

I'm trying to make my humanoid walk, but every time I run this script, it dies:

m = Instance.new("Humanoid", game.Workspace)
m.Name = "Human"
-- lol

I was told to put in that script, so... I press play, and it dies...

2 answers

Well I think you would want the humanoid to be put into a model containing a jointed Head and Torso. Without those three factors, the Humanoid doesnt work properly or will just die.

3 comments

0

Okay, should I join the arms and legs as well? I've made it into a model, and deleted the whole script. I put the humanoid into the model, and I pressed play. It's still dying??

0

Arms and legs are excess limbs. You want to weld the head to the torso. If that doesnt work then I dont see how to fix it

0

Just make a model and put a head inside with a humanoid there you go lol-

From the humanoid page on wiki.roblox.com (http://wiki.roblox.com/index.php?title=RBX.lua.Humanoid_(Object)): "The humanoid object needs to recognize that the Model it's contained in has two Parts, named "Head", and optionally, "Torso", in order to create a healthbar". I would recommend putting the humanoid in a model with head, as stated in the previous answer. A torso is optional. Hope I've helped! :) - comment if you need further help, I will be glad to answer your question!

6 comments

0

How do I insert a torso?

0

You don't need to - it's optional.

0

Oh, well. Do I group the head as well as all of the other body parts I want to add on to it?

0

Yup!

0

alright, hold on.

0

It's still not working??

This discussion is preserved as it was. New answers, comments, and votes are closed.