I have this script, it is supposed to get the children of a model in the player, and then take the names of the children and turn them into a variable, and then print the variable. It sort of works, but it will only get the names of 3 children. Can anyone help?
game.Players.PlayerRemoving:connect(function(plr) local items = plr.items:Clone() items.Parent = game.ServerStorage items.Name = plr.Name.." items" local saveItems = plr.Name..": " local getItems = items:GetChildren() for i, v in pairs(items:getChildren())do saveItems = saveItems..(v.Name).." + " print(saveItems) end print(saveItems.."!!!") end)