Skript not working for all players

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

Ceekay

Member
Nov 16, 2024
4
0
1
24
So i have this skript

Code:
every 20 ticks:
    loop all players:
        if {mana.%loop-player's uuid%} is equal to {manamax.%loop-player's uuid%}:
            stop
        else:
            add {manaregen.%loop-player's uuid%} to {mana.%loop-player's uuid%}


Yet when i try it only one player or some players have their mana regenerating some players dont even have their mana regenerating how do i fix this
 
So i have this skript

Code:
every 20 ticks:
    loop all players:
        if {mana.%loop-player's uuid%} is equal to {manamax.%loop-player's uuid%}:
            stop
        else:
            add {manaregen.%loop-player's uuid%} to {mana.%loop-player's uuid%}


Yet when i try it only one player or some players have their mana regenerating some players dont even have their mana regenerating how do i fix this
It is probably better to use list variables for your code (Ie: {mana::%loop-player's uuid%}). Also, make sure that if statement is passing for all players by debugging it.