Health Bar

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

brsko

Member
Mar 21, 2024
18
0
1
21
Can anyone tell me how to make a skript so it displays the health of a player under their nametag?
 
This is not tested.

This should create a text box somewhere above the player that follows you around(should be strict follow).

code_language.skript:
command test:
    trigger:
        spawn display entity at location of player
        set {_d} to last spawned entity
        make {_d} ride player
        set display translation of {_d} to vector(0,2,0)
        set display text of {_d} to "Health: 20/20"
        wait 10 seconds
        delete {_d}