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.

Solved Make player look down

Discussion in 'Skript' started by Melody, Mar 17, 2021.

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

    Melody Member

    Joined:
    Jan 19, 2021
    Messages:
    17
    Likes Received:
    1
    Title

     
  2. Best Answer:
    Post #4 by couger44, Mar 17, 2021
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Well... this a simple method, but it does what you want it to do.

    Code (Skript):
    1. set {_location} to player's location
    2. set {_pitch} to pitch of player + 180
    3. set {_location}'s pitch to {_pitch}
    4. teleport player to {_location}
     
  4. Melody

    Melody Member

    Joined:
    Jan 19, 2021
    Messages:
    17
    Likes Received:
    1
    :emoji_astonished: ty btw can I teleport player to the ground? so the player wont stay in mid air
     
  5. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    What do you mean? Something like this?

    Code (Skript):
    1. while blocks above player is air:
    2.     teleport player to location(player's x-coords, player's y-coords - 1, player's z-coords, world)
    3.     wait 5 ticks
    Edit: i made a mistake.
     
    #4 couger44, Mar 17, 2021
    Last edited: Mar 17, 2021
  6. Melody

    Melody Member

    Joined:
    Jan 19, 2021
    Messages:
    17
    Likes Received:
    1
    Code (Text):
    1.  
    2. on any move:
    3.     {captcha.%player%} = true:
    4.         cancel event
    5.         captcha(player)
    6.         while blocks above player is air:
    7.             teleport player to location(player's x-coords, player's y-coords - 1, player's z-coords, world)
    8.             wait 5 ticks
    am I doing smth wrong here
     
Thread Status:
Not open for further replies.

Share This Page

Loading...