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

Shiny

Member
Jul 9, 2023
4
0
1
24
I need help for spawn an armor stand looking to player in event-block position:

i try with this, it don't send error's but it doesn't work.
set {x} to x-coord of event-block
set {y} to y-coord of event-block
set {z} to z-coord of event-block
set {_yaw} to yaw of player
set {_pitch} to pitch of player
remove 0.5 from {y}
set {_world} to world of player
spawn armor stand at location at {x}, {y}, {z}, {_yaw}, {_pitch}
 
Code:
set {_loc} to event-block's location
set yaw of {_loc} to player's yaw
set pitch of {_loc} to player's pitch
remove 0.5 from y coordinate of {_loc}
spawn armor stand at {_loc}

here is a working version of the code you supplied, which will spawn an armour stand at the event block looking in the same direction as the player. if you want the armour stand to look at the player instead, simply add 180 to the yaw.