Solved Teleporting player doesn't keep rotation

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

Shadow501pl

Active Member
Dec 19, 2020
62
2
8
24
i am trying to recreate Aote from hypixel skyblock with skript but when i teleport the player it just alway's make's him look in one direction (south). Im using the latest skript and the newest 1.16.3 version.
Code:
Code:
on right click:
    if player is holding a diamond sword:
        if tool's name is "&5Aspect of the end":
            set {%player%.yaw} to player's yaw
            set {%player%.pitch} to player's pitch
            set {%player%.yaw} to {%player%.yaw} + 0.1
            set {%player%.pitch} to {%player%.pitch} + 0.1
            teleport player to block 8 in front of the player
            wait a tick
            set player's pitch to {%player%.pitch}
            set player's yaw to {%player%.yaw}
 
Last edited:
something like that?
Code:
on right click with diamond sword:
    if player's held item's name is "&5Aspect of the end":
        teleport player 8 meters infront of player

(please use code blocks)
 
something like that?
Code:
on right click with diamond sword:
    if player's held item's name is "&5Aspect of the end":
        teleport player 8 meters infront of player

(please use code blocks)
Thank you so much, i wasted so many hours instead of asking in this forum
 
Status
Not open for further replies.