Data won't save if player leaves before like 20 seconds

Use ProfileService instead, it will benefit you way more than if you set it up yourself.