Datastores are something developers struggle with, You should preferable use Profile Store, it saves so much time.
Source : ProfileStore - Save your player data easy (DataStore Module)
Video: https://www.youtube.com/watch?v=m2SP_TLeWHI&ab_channel=Rileybytes-Roblox