Solved Loop Effect

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

nicoxdry

Member
Mar 22, 2017
27
0
1
I want to loop the command "/effect %player% 11 30" 600 times for it makes 5 hours but i haven't been able to do it. Please someone help
 
I want to loop the command "/effect %player% 11 30" 600 times for it makes 5 hours but i haven't been able to do it. Please someone help
code_language.skript:
Loop 600 times:
    Execute console command "/effect %player% 11 30"
    Wait 30 seconds
 
Or you know, use the vanilla Skript effect for it:
code_language.skript:
apply resistance 1 to player for 5 hours
 
Or you know, use the vanilla Skript effect for it:
code_language.skript:
apply resistance 1 to player for 5 hours

This one doesn't work when i do it it makes the player get infinite resistance
 
Status
Not open for further replies.