Cancel move

Discussion in 'Skript' started by Hqes, Aug 5, 2018.

  1. I wanna cancel move without head.

    I mean i wanna move my head but not move body

    thanks for help
     
  2. here's a simple little one you can use
    Code (Text):
    on join:
        set {locz::%player%} to z coord of player
        set {locx::%player%} to x coord of player
        set {loc::%player%} to location of player

    on any move:
        if z coord of player is not {locz::%player%}:
            teleport player to {loc::%player%}
        if x coord of player is not {locx::%player%}:
            teleport player to {loc::%player%}
     
     
    #2 ShaneBee, Aug 5, 2018
    Last edited: Aug 6, 2018
  3. thank , you , very , so , much , shanbee
     
  4. Youre welcome :) obviously modify it to suit your needs :)
    Its probably not the BEST way of doing it, but its all I could think of right now, Ive never written something like that before