Can someone help me write a 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!

GrenFlem

Member
Feb 24, 2025
19
1
3
I need help writing a skript that gives invisible players the glowing effect when they bump into another player. I've already written one that removes invis when they attack another player.

I'm trying not to loop something unless someone has invisibility to not lag things out, i dont want it to run unless it needs to
 
This code is untested but should do it.

Code:
every 1 tick:
    make all players execute command "{}check"
command /{}check:
    trigger:
        loop all players within 2 blocks of player:
            if loop-value-2 is set:
                execute console command "effect give %loop-value-2% minecraft:glowing 1 255 true"