SKRIPT HELP

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

jidion

Member
Jul 4, 2023
10
0
1
on join:
loop all players:
while loop-player is online:
set action bar of loop-value to "<##6FFB24>Players Alive: %{playerlist_alive-players_amount}%"

This for some reason crashes my game even if i remove the placeholder or remove the {} Can someone please help thanks in advance!
 
You need to include some sort of delay or only update the action bars of players when a player dies/leaves. A while loop will trigger thousands of times per second.
 
on join:
loop all players:
while loop-player is online:
set action bar of loop-value to "<##6FFB24>Players Alive: %{playerlist_alive-players_amount}%"
wait 5 ticks
set action bar of loop-value to "<##6FFB24>Players Alive: %{playerlist_alive-players_amount}%

Yep I fixed it but i dont know why its not doing what its supposed to do its suppose to show the players in gamemode survival but it says "<none>"
 
That means your variable {playerlist_alive-players_amount} isn't set