View difference between Paste ID: NCxFiwaX and LUTiBibe
SHOW: | | - or go back to the newest paste.
1
local players = game:GetService("Players")
2
3
4
local playerData = script.PlayerData
5
6
7
local function LoadData(player)
8
    for i, v in pairs(playerData:GetChildren()) do
9
        v:Clone().Parent = player
10
    end
11
end
12
13
14
players.PlayerAdded:Connect(LoadData)