Yeah, sure. But you’ll set it up my way and learn something!
We’ll do this in a few steps here.
This should do for your needs, I think.
Oh, you can leave the branch out. But it will keep going if the turret sees a player. Make a new bool checking if it sees the player, and put it there to stop this functionality.