• 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.
Try this

code_language.skript:
command /shout [<text>]:
    permission: shout.player
    permission message: &cError: No Permission
    trigger:
        if arg-1 is not set:
            send "&cError: Wrong usage"
            stop
        else:
            difference between {_waited.%player%} and now is less than 7 days:
                set {shout.%player%.lastused} to now
                broadcast "&9%player% -> &7%colored arg 1%"
                loop all players:
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    play raw sound "random.click" at loop-player with pitch 0.5 volume 10
                    wait 2 ticks
                    send loop-player title " " with subtitle "%colored arg 1%" for 5 seconds
                    wait 2 ticks
                    play raw sound "random.orb" at loop-player with pitch 0.5 volume 10
                    stop
            else:
                message "&cError: You can only shout once a week."
                stop
 
Status
Not open for further replies.