Gizmo on runtime

Hi I have a project to create a gizmo on runtime and I have followed this video right here:

Everything Seems to be working fine until the rotation. I have done the rotation for X axis as said in the video and made the Y axis and Z axis accordingly with sequence node so it can execute the functions whenever the gizmo is selected but the gizmo only rotates the object around one axis that can be the X or Y. I was scratching my head for a whole day and couldn’t find a solution for this. Any help is appreciated!!