I'm currently using
to display the health percentage of each player to all players, but once it reaches about 50+ players online it starts to drop the tps, what would be the most efficient way to display player health without it causing lag?
code_language.skript:
on damage:
wait 1 tick
set {_health} to floor(health of victim*10)
set score "%%" below victim to {_health} for attacker
every 1 seconds:
loop all players:
world of loop-player is not "Spawn"
wait 0.1 tick
set {_health} to floor(health of loop-player*10)
loop all players:
set score "%%" below loop-player-1 to {_health} for loop-player-2
to display the health percentage of each player to all players, but once it reaches about 50+ players online it starts to drop the tps, what would be the most efficient way to display player health without it causing lag?