HealthBar Skript

  • 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 community!

    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!

Status
Not open for further replies.

MilkLegend

New Member
Feb 24, 2019
5
0
0
Hello! I'm recently new to Skript, I am using the original version which was abandoned 4 years ago. I can't find how to put the Skript in code blocks, sorry if anyone is mad by that.

`options:
permissions: false
# values: ( true | false )

perm-to-see-the-health-bar:sh.ver.a.vida
# Write here your permission. This system only works if you have "permissions: true"

on join:
while player is online:
if {@permissions} = true:
if player has the permission "{@perm-to-see-the-health-bar}":
loop all players:
set score "&c&lHealth" below player to player's health for loop-player
wait 20 ticks
else:
loop all players:
set score "&c&lHealth" below player to player's health for loop-player
wait 20 ticks`

I would like to make it say 20 instead of 10 for the players health, for some reason, I like everything to be perfect.
 
Use player's health * 2.
To format code, use the + button above the typing area and click </> code. I also recommend using the newer Skript version, but that depends on your version.
 
Right after player's health, so it'll be
Code:
set score "&c&lHealth" below player to player's health*2 for loop-player
 
Thank you! I'll try this out once I get home!

EDIT: THANK YOU, I've been trying to find a solution for about a month now!
 
Last edited:
Status
Not open for further replies.