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

IViddyy

Member
Apr 17, 2022
17
1
3
Hi im new to skript and im trying to make a skript that kills the player by the amount u entered (like if u entered 5 it insta kills the player 5 times).

Edit: its for insta respawn.
 
Last edited:
something like this?
Code:
command /kill <text> <integer>:
   trigger:
       loop all players:
           if name of loop-entity is equal to arg-1:
               while {_times} is not arg-2:
                   kill loop-entity
                   add 1 to {_times}
                   wait 1 second
                   
on death of player:
   force victim to respawn
 
something like this?
Code:
command /kill <text> <integer>:
   trigger:
       loop all players:
           if name of loop-entity is equal to arg-1:
               while {_times} is not arg-2:
                   kill loop-entity
                   add 1 to {_times}
                   wait 1 second
                 
on death of player:
   force victim to respawn
it did nothing but u dont have to force the player to respawn i set the gamerule to true so they just respawn instantly but it says there is a empty configuration section on the 3rd line
 
ok, use just this:
Code:
command /kill <text> <integer>: #usage: /kill <name> <times>. example: /kill Drakem 5
   trigger:
       loop all players:
           if name of loop-entity is equal to arg-1:
               while {_times} is not arg-2:
                   kill loop-entity
                   add 1 to {_times}
                   wait 1 second

and don't use the spaces from this code, when you go to paste it in your file rewrite the tabs manually
 
something like this?
Code:
command /kill <text> <integer>:
   trigger:
       loop all players:
           if name of loop-entity is equal to arg-1:
               while {_times} is not arg-2:
                   kill loop-entity
                   add 1 to {_times}
                   wait 1 second
                  
on death of player:
   force victim to respawn
thanks it worked
 
  • Like
Reactions: Drakem
Status
Not open for further replies.