What even is this?

So while editing a Friends Place, I noticed a Script I had not made before, When taking a closer look, It was Supposed to be a DataStore Script, It seemed to be pretty broken, and not very good when it came to handling the Data.

But one of the Weirdest things I saw on the Script was this:

game.Players.PlayerAdded:Connect(function(player)
    local DataStore = DataStoreService:GetDataStore(player.Name.."'s Data")
    local Data = DataStore:GetAsync(player.UserId)

Creates a whole DataStore for a Single Player, then uses it for Data.
So It got me wondering about what exactly would this do? And how would it effect the game?

1 Like

It’s just a very poor way of saving data (especially since it uses the player’s name)

pretty sure it isn’t a good idea to save data using the player’s name… also why did they use :GetAsync(player.UserId) when it’s literally their own dedicated datastore :skull:

1 Like

I see, so how exactly would this affect the game?

This is just a really inefficient method of saving data. You could technically use it but it isn’t efficient.

It wouldn’t do anything negative to the game except leave players frustrated when their data doesn’t save/load