Why is my first person movement script returning an error?


This is the error I am getting when I launch, but the player does have a collision component.
here is the project:
https://playcanvas.com/editor/scene/1321393
and here is the script with one of the errors:
https://playcanvas.com/editor/code/874909?tabs=66615978&line=48&col=14&error=true
there is another error too, but I do not know how to fix these. Any help would be very appreciated :smiley:.

It looks like you’ve already fixed this problem as I’m not seeing the error. Nice project by the way! :ok_hand: