Error in activating and deactivating the beam when pressing a button in vr

Good afternoon. I have a problem that I can’t solve. In the section “2.3: Direct and Ray Interactors” of Unity Learn, when I add both scripts, the ray is activated without problems but it doesn’t transport me. However, if I remove the scripts the movement works perfectly.
I have followed the video to the letter and in my project I have it exactly the same, however the character still does not move even though the ray is activated without problem.
What could be the solution to this problem?

Did you find any fix.?