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.

This effect is not working and I don't know why

Discussion in 'Skript' started by Aidanete, Aug 15, 2018.

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

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    Code (Skript):
    1. on rightclick:
    2.     player's tool is a compass named "<yellow>Spectate players":
    3.         cancel event
    4.         set {_slot} to 0
    5.         open virtual chest inventory with size 6 named "Spectate players" to the player
    6.         loop all players in event-world:
    7.             if {spc::%loop-player%} is not set:
    8.                 format gui slot {_slot} of player with loop-player's skull named "%loop-player%" to run player command "/teleport %loop-player%"
    9.                 add 1 to {_slot}
    This is supposed to create a list of players in the current world of the event-executor and make heads which teleport to the corresponding users. But the problem is that nothing after player's tool is a compass named "<yellow>Spectate players": seems to work, I tested with a hello world message and no, don't work, I also see if the name is correctly written and it's correct, maybe lore can have something to do with this, anyway I need help!!!
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I think its a problem with the compass.
    Are you using essentials? Does it give a message like "Nothing to pass through"?
    Have you tried using a different tool just for testing?
    I tested with a stick and the gui opens up.
     
  3. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    15
    Medals:
    No offense, but it seems that you generally have issues quite often with skript, so i would recommend joining the SkUnity discord for quicker help here https://discord.gg/wnJfyxA
     
  4. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    @ShaneBee Yup, I tested with a book and don't works, yes I have worldedit and the compass says that, but I don't have essentials.
    @Efnilite Yes, I have issues often with skript, and I'm on the discord of SkUnity, but I didn't ask anything yet there.
     
  5. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    15
    Medals:
    You should ask there first before coming here, because there are a lot of better skripters there then there are here
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Maybe he doesn't want to :emoji_wink:
    I personally like using the forums, as the discord is a huge mess. I quite often check it, and offer help when I know the solution, or can at least attempt to find a solution.
     
  7. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    Probably is better there, but I'm a little more comfortable here than there, any discord server that is not mine or a near friend's one is for me a little unconfortable. So, I'm a little scared. Maybe if you know how to make the code I post there show as a code like in darker gray for highlighting. I don't know how to do that...
    upload_2018-8-16_12-2-29.png
    Like that /\
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    you put 3 backpacks before your code, and 3 after
    like this:
    ```
    on event:
    do something
    ```

    edit:
    you can also add "vb" after your first 3 back ticks, gives it a nice little color:
    ```vb
    on event:
    do something
    ```
     
Thread Status:
Not open for further replies.

Share This Page

Loading...