1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help

Discussion in 'Skript' started by EpicGamese, Aug 24, 2020.

Thread Status:
Not open for further replies.
  1. EpicGamese

    EpicGamese Member

    Joined:
    Aug 24, 2020
    Messages:
    3
    Likes Received:
    0
    Hello so i am making a skript and i made a command gamemode spectator and it says this "The skript test.sk infitanly repeating itself!" And here is the code
    Code (Text):
    1. command /gamemode spectator:
    2.   trigger:
    3.     make console execute command "gamemode spectator %player%"
    4.     make player execute command "gamemode spectator"
    can someone help me
     
  2. Romitou

    Romitou New Member

    Joined:
    Jun 2, 2019
    Messages:
    8
    Likes Received:
    4
    The error is clear, your script repeats itself indefinitely, because you make the command /gamemode spectator run in a loop.
    Instead, choose this, which will avoid generating a loop:
    Code (Text):
    1. set game mode of player to spectator
     
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...