help with movement code

Toss this code. It starts a coroutine every frame. Besides a movement controller never needs a coroutine.

If it is a FPS controller…

If you would prefer something more full-featured here is a super-basic starter prototype FPS based on Character Controller (BasicFPCC):

That one has run, walk, jump, slide, crouch… it’s crazy-nutty!!