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.

Error?

Discussion in 'Skript' started by Noahrobs, Jul 13, 2017.

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

    Noahrobs Member

    Joined:
    Jul 13, 2017
    Messages:
    12
    Likes Received:
    0
    on right click:
    if player is holding diamond:
    if player is in world "world_nether":
    loop players in radius 10 around player:
    play sound "ENTITY_PLAYER_LEVELUP" to loop-player with volume 1 and pitch 2

    I did this and it should work.. but whenever I reload the skript
    it says
    "There is no loop that matches 'loop-player with volume 1 and pitch 2'
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    replace "loop players in radius 10 around player:" with "loop players in radius 10 of player:"
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Nope same error..
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    haste bin your full script please.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Okay just tested this oneXD
    Code (Skript):
    1. on right click:
    2.     if player is holding diamond:
    3.         if world is "world_nether":
    4.             loop all players in radius 10 of player:
    5.                 play "ENTITY_PLAYER_LEVELUP" to loop-player with volume 1 and pitch 2
    it must be loop ALL players and in the last line loop-player, not loop player
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    There must be something wrong with my Skript then cause that dont work same error
    --- Double Post Merged, Jul 13, 2017, Original Post Date: Jul 13, 2017 ---
    Here
     

    Attached Files:

  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    ah! you likely don't have the right addon. I can't recall honestly which addon my play sound effect comes because I have all of themXD Looking it up now, Skrayfall, skellet and extrask all have play sound effects that are very similar.
    http://nfell2009.uk/skunity/effects
    Skript effects page^. You could look to see which one you like best. I dont see a play sound for regular skript unless I'm very mistaken
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I don't use Bensku's fork so I can't attest to it sadly, I do hope you're able to sort it though. I'm out of ideas :emoji_frowning:
    --- Double Post Merged, Jul 13, 2017, Original Post Date: Jul 13, 2017 ---
    actually, one more shot, just in case it helpsXD
    Code (Skript):
    1.             loop all players in radius 10 of player:
    2.                 set {_location} to location of player
    3.                 play "ENTITY_PLAYER_LEVELUP" to loop-player with volume 1 and pitch 2 at %{_location}% to player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...