Advertisement
giganciprogramowania

lekcja 5 DataServer

Mar 16th, 2023
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement