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?
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