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.

Player Teleport

Discussion in 'Skript' started by Turtlord, May 26, 2023.

  1. Turtlord

    Turtlord Member

    Joined:
    Feb 11, 2021
    Messages:
    14
    Likes Received:
    0
    How do I make the player teleport 10 blocks forward?
    --- Double Post Merged, May 26, 2023, Original Post Date: May 26, 2023 ---
    I got this from a different forum:
    Code (Text):
    1. loop blocks from the block at the player to block at {_loc}:
    2.             if loop-block is solid:
    3.                 set {_loc} to loop-block location
    4.         teleport player to {_loc}
    I added the "set {_loc} to loop-block location" but it doesn't work
    I'm trying to make it so the player would be teleported in front of the wall instead of through it
     
    #1 Turtlord, May 26, 2023
    Last edited: May 26, 2023

Share This Page

Loading...