It appears the HealthDisplayType property of Humanoid (the property which allows you to see the health bar of things) only works when there is a part named “Head” in the humanoid’s parent. Not only is this not documented in it’s wiki page (Humanoid | Documentation - Roblox Creator Hub), but it is also buggy.
Description: When there exists a group of parts with a humanoid who’s HealthDisplayType
is set to anything which allows it to be viewable in Studio (i.e. AlwaysOn
or DisplayWhenDamaged
), and a part is inserted into the model, and the part is renamed to “Head”, the humanoid’s health bar will be displayed above said part. However, upon renaming this part to anything - say “2”, and renaming back to it’s original name - “Head”, the health display can no longer be seen in the Studio editor, however it can be seen during “Run” mode. Likewise, if there already existed a part called “Head”, and said part was renamed, and named back to “Head”, the health bar fails to be displayed above the part. In addition, the character’s name fails to be displayed also. It should be noted that upon restarting studio, the health and name display both show up, however after the process is replicated, the bug once again happens and the health and name display both disappear.
Occurence: Studio Editor, macOS
Start of occurrence: an hour ago
GIFs:
https://gyazo.com/07ff98d9ebb895fdc0da6ac9ac670171
https://gyazo.com/ea9ecb66975d2c88cde2243b4ede3194
https://gyazo.com/717c679cc754b8c1fb8fb17a6a3c715c
Steps to reproduce:
- Have group of model - import “Wood Crate” model from toolbox
- Insert a humanoid into the model
- Change
Humanoid.HealthDisplayType
toAlwaysOn
- Insert a part into the model
- Name the part “Head” → can see health, name display
- Rename the part
- Name the part “Head” once again → can no longer see health, name display
- Play game in “Run” mode → can see health, name display
- Stop playing game in “Run” mode → can no longer see health, name display
- Restart studio, open place → can see health, name display