Need help

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

iTzFlo

Member
Aug 6, 2019
4
0
1
24
Hello I wanted to ask if someone can help me?
I want to make a script if a player dies in the world that the player also respawns in this world in which he died. but not only with one world but with many and there I do not know any further.
 
If I understand you problem...
Code:
on death:
    set {death::%player%} to location of player
on respawn:
    wait 1 tick
    teleport player to {death::%player%}
    delete {death::%player%}
 
Hello I wanted to ask if someone can help me?
I want to make a script if a player dies in the world that the player also respawns in this world in which he died. but not only with one world but with many and there I do not know any further.
Try this
Code:
on death of a player:
    set {death::%player%} to location of player
on respawn:
    wait 1 tick
    teleport player to {death::%player%}
    delete {death::%player%}
    wait 0.1 seconds
    teleport the player to the world's spawn
 
Status
Not open for further replies.