I tried use the fpv movement tutorial of playcanvas, but this use legacy script and i cannt add it.
Are you talking about this project sample? https://developer.playcanvas.com/en/tutorials/first-person-movement/
If so, it should be using the current scripting system, Scripts 2.0