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

Teleportation Script

Discussion in 'Skript' started by Ferryman, Jun 13, 2019.

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

    Ferryman Member

    Joined:
    Jun 13, 2019
    Messages:
    2
    Likes Received:
    0
    I'm trying to make a teleportation script which will teleport player to the block they're looking at in a 75 block radius and they will slowly come out of the ground.

    This is the best that i have.

    Code (Skript):
    1.  
    2. function teleport(p: player):
    3.     loop all blocks in raidus 75 of {_p}:
    4.    
    5.  
    6. on rightclick on book:
    7.     if name of event-item is "&eTeleport":
    8.           teleport(player)
    9.  
    10.  
    I don't remember what it was that will teleport player to the block they're looking it and its all that i need ty.

    Addons: Bensku Skript fork, SkQuery, and SkRayFall
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,945
    Likes Received:
    133
    `teleport player to target block of player`
     
  3. F

    Ferryman Member

    Joined:
    Jun 13, 2019
    Messages:
    2
    Likes Received:
    0
    Is can i make it check if target block is in radius 75?
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,945
    Likes Received:
    133
    just check if the distance between target block and player is less than or equal to 75
     
  5. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    385
    Likes Received:
    20
    is no one going to mention 'raidus'
     
    • Like Like x 1
Thread Status:
Not open for further replies.
Loading...