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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom Spawn Pads Skript

Discussion in 'Requests' started by Shayph, May 4, 2022.

Tags:
  1. Shayph

    Shayph Member

    Joined:
    May 4, 2022
    Messages:
    1
    Likes Received:
    0
    I'm looking for a skript that allows a player to crouch/sneak on a beacon and after doing so their spawnpoint is set there. So if they respawn, they will be teleported back to there or if they rejoin they are teleported back to there.
     
  2. Jake*

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    109
    Likes Received:
    6
    Code (Text):
    1. on sneak toggle:
    2.   player is sneaking
    3.   block below player is a beacon
    4.   set {spawnpoint::%player's uuid%} to player's location
    5.   send title " " with subtitle "&b&lCheckpoint set!" to player
    6.  
    7. on respawn:
    8.   teleport player to {spawnpoint::%player's uuid%} if {spawnpoint::%player's uuid%} is set
    Let me know if anything here doesn't work as intended!

    If this helped you consider marking this comment as "Best Answer" and marking the thread as "Solved"!
     

Share This Page

Loading...