Make my weapon rotate towards an object with a button

Guys can you help me how can i make my weapon rotate or face to an object with left and right button? When i click the right button the weapon should face towards the right box and when i click the left button the weapon should face towards the left box. Thanks in advance!

You might want to read this.
Just change Mouse.X() with RightBox.X() and Mouse.Y() with RightBox.Y() on the condition of right key press.
You can do the same for left key press too :slight_smile:

i did that but it only rotate into one box.