Player Teleport

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

Turtlord

Member
Feb 11, 2021
14
0
1
24
How do I make the player teleport 10 blocks forward?
[doublepost=1685098066,1685097167][/doublepost]I got this from a different forum:
Code:
loop blocks from the block at the player to block at {_loc}:
            if loop-block is solid:
                set {_loc} to loop-block location
        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
 
Last edited: