Advertisement
giganciprogramowania

l3 MainServer

Mar 3rd, 2023
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local players = game:GetService("Players")
  2.  
  3.  
  4. local pets = game.ReplicatedFirst.Pets
  5. local playersFolder = workspace.Players
  6.  
  7.  
  8. players.PlayerAdded:Connect(function(player)
  9.  
  10. local folder = Instance.new("Folder")
  11. folder.Name = player.Name
  12. folder.Parent = playersFolder
  13.  
  14. for i = 1, 20, 1 do
  15. local newPet = pets[i]:Clone()
  16. newPet.Parent = folder
  17. end
  18.  
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement