Need help making an auto turret

Here, check this guide:

Also, please mark a solution. Thanks.