I tried following a griffpatch tutorial and I got a gravity code and a movement code as a base if you just so happen to remix this and fix it.
credits to griffpatch for the tutorial I used to try and make this.