Mobile fps movement

In this script I want a button that can be pressed on mobile to move the player forward.
also I want you to be able to swipe the screen to look around
someone help so I can make my game mobile

Hi @Mason_Rocchio,

For buttons check this tutorial:

https://developer.playcanvas.com/en/tutorials/ui-elements-buttons/

For looking around using a touch gesture you can find several examples. Both the model viewer starter kit (when creating a new project) and this FPS starter kit include that functionality for you to check out:

https://developer.playcanvas.com/en/tutorials/first-person-shooter-starter-kit/