Ability not working

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

sillypop

Member
Oct 25, 2024
3
1
3
so i'm making a skript where two ability types, primary and secondary. the code below is one of my primary abilities, but it seems it doesn't work when I tested it with friends. should I just check my formatting or do i somehow do smth wrong? tysm!

Code:
loop all players within 8 blocks around player:
    if {trusted.%player%.%loop-player%} is false:
        add potion effect of darkness for 30 seconds to potion effects of loop-player
        add potion effect of slowness 2 for 30 seconds to potion effects of loop-player
 
Code:
loop all players in radius 8 of player:
    if {trusted.%player%.%loop-player%} is false:
        add potion effect of darkness for 30 seconds to potion effects of loop-player
        add potion effect of slowness 2 for 30 seconds to potion effects of loop-player

Hope that helps!