Solved Applying effect while player is in specific region

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

Remo

New Member
Mar 20, 2024
7
0
1
24
Hello, I have problem with my skript but no error is showing, can anyone please tell me what wrong with this code ?
Code:
on region enter:
  if "%region at player%" contains "small_cave":
    while "%region at player%" contains "small_cave":
      apply speed tier 2 without particles to player for 1 second
      wait 1 second
 
Try to replace "%region at player%" with "%event-region%".
Thanks for reply, but that would trigger the command while the region contains small_cave, and because entered region still cotains small_cave because the name dont change, the effect will stay on the player forever, but i did it with command blocks so its solved