DataStore2 :Set() not working?

image
this is my code. My anti-cheat has a strike system and if you have more than 5 strikes you will be banned. This code sets your ban data to 2 (which is the most powerful ban) However the code runs and it literally kicks the player but for some reason it doesn’t actually set their ban data to 2 and it remains at 0. Why is this?

All help greatly appreciated.
I will answer any questions as well.

This is datastore2

If you find this thread in the future I had a similar problem that was caused by updating the Data store in a different area of code overriding the new Data store.