Looping A Command | Script

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

    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.
Feb 17, 2017
6
0
0
Yes I Was Wondering if any one knows how to do a script to make a player repeat a command 1 time every 5 seconds i tried:
every 5 seconds
make player execute command "sidebar"

But it doesnt work it says make player execute is not a entity. ty to who ever gives me the awnsers
 
The periodical event doesn't have any event player on it so you have to get the player looping them, but on this case, such as the command effect support multiple players, you can do:

code_language.skript:
every 5 seconds:
    make all players execute command "sidebar"

be aware that this effect also support multiple commands, so if you want to run more than a command you can do:

code_language.skript:
every 5 seconds:
    make all players execute command "sidebar", "other command" and "another command more"
 
Status
Not open for further replies.