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

What is the roblox Humanoid ?

Asked by 9 years ago

I see it often for safe-checking in alot of scripts but why is it so special? and why do people check for the character model after they check the player is there.

0
What kinds of scripts are you seeing this in? To answer a bit of your question, some scripts require a player to be alive, so they make sure that the character or the humanoid exist. SanityMan 239 — 9y
0
i see it especially in event scripts and if the player is alive then why would you need to check if the character exists. threatboy101 2 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

The humanoid is used for a lot of things. A reason why people check to see if their's a Humanoid in something, is so they know it's a player and no tool/hat/part fell and activated it which may cause an error. The humanoid is also used to make a player sit, stand, move to something, and so on. You would also use this with making a status in a player and I believe animations for NPC's. If you didn't notice, the humanoid also causes the player it's inside (Assuming everything is named correctly) to "change", making rounded shapes besides the head. It will also allow character meshes to work, which is how packages work. Also, when this is inside a model with correctly named parts, a health bar and name tag will appear above "Head". There are more things too, but you can do some research on the rest.

So again, it's mainly used to check if a Character has touched or done something, and if this Character is alive.

Ad

Answer this question