player not affected by world gravity

ok I fixed the gravity thing and doing this did not do what I thought it was going to so now what I need help with is with the gravity inverted for it to count the roof as a floor