Help

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

Status
Not open for further replies.

EpicGamese

Member
Aug 24, 2020
3
0
0
24
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:
command /gamemode spectator:
  trigger:
    make console execute command "gamemode spectator %player%"
    make player execute command "gamemode spectator"

can someone help me
 
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:
set game mode of player to spectator
 
  • Like
Reactions: Nikd0
Status
Not open for further replies.