[HELP] How can I fix this script

This is an extremely common problem among beginner scripters. The answer is in this post: How to properly save player data in data stores upon server close