For my classmate @AnnoyedGamer658 I improved the movement, added friction, and added a health bar.
Sorry I couldn't fix some of the bugs, the code was very complex.