Hey guys,
local players = game:GetService("Players"); local ds = game:GetService("DataStoreService"):GetGlobalDataStore("Player's Storage"); function Player_Entered(plr) local key = "player-"..plr.UserId; local data_to_get = ds:GetAsync(key); if data_to_get then -- Just setting the values equal to this 2D array that it receives. (If Data Store Supports 2D Arrays) end end function Player_Leaving(plr) local Values_To_Save = {{VALUES}, {VALUES}} -- Just think that there are values stored inside of them. Not user data values but, values like ints/strings/booleans. local key = "player-"..plr.UserId; ds:SetAsync(key, Values_To_Save); end players.PlayerAdded:Connect(Player_Entered); players.PlayerRemoving:Connect(Player_Leaving);
Locked by shayner32
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?