How do I make a player not be able to move when being looked at?

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


Nov 24, 2021
Hiya, I was just wondering if there was some sort of way that I could detect when someone is looking at a player, and if they are looking at a player, then affect that player?

I'm basically trying to make it so that a user can't move when being looked at, but can move just fine when nobody is looking at them.

Is this even possible?

I know it can be done on mobs with command blocks, but I am wondering if there is some way to do this with skript by checking the yaw of players?