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.

Kill player on Void

Discussion in 'Skript' started by Kampfwombat, May 5, 2020.

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

    Kampfwombat Member

    Joined:
    Apr 21, 2017
    Messages:
    14
    Likes Received:
    0
    Hello everyone, i was trying to make a skript that kills every player in the void.
    I dont know how to put the code in the thread, but i used:

    on damage of a player:
    if damage cause is void:
    cancel event
    kill the player
    but I get the error:
    "Cant compare a damage cause with a types.art"

    Is there a way to work around this? Maybe with coordinates?
     
  2. KasiaPRO

    KasiaPRO Member

    Joined:
    May 2, 2020
    Messages:
    25
    Likes Received:
    0
    Try this, (not tested)
    Code (Text):
    1. on damage:
    2.   if player's y-coordinate is smaller than 0:
    3.     kill the player
    idk if works
    hope it help
     
  3. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    Is better:
    Code (Text):
    1. if damage cause is void:
    2.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...