Error with my script for shooting bullets

My script for shooting a bullet is not working. There is an error saying "Cannot read properties of undefined (reading ‘teleport’).

Here’s the link to my game & script:
https://playcanvas.com/editor/scene/1648995
https://playcanvas.com/editor/code/1033147?tabs=122046394&line=21&col=30&error=true

Hi @Pixels! Based on the error, it looks like your bullet template doens’t have a rigidbody component.