Making entity rotate on x axis onclick

    if ( {
        this.sword.rotate(X =  90, Z = 0);

Ok so this is my method of making the sword rotate 90 degrees after mousebutton click but doesnt work anyone know why?

I think you want something like:

Also, you may want to set local rotation and not global.

Oh ok i will check it out thank you!