I had the code that set gravity to zero (and every other code fix I was trying for the last couple hours) in another event sheet that was not included in the layout's event sheet.
It's now working just fine. Thank you everyone for your help.
I apologize for being a bit of dolt