Folder Not Cloning When 2+ Players Are In-Game

I have a script that creates and clones a new Folder into a player upon them joining, however, it only seems to work for the first player to join. The folder gets cloned into the first player, however it does not for the second. I have attached an image and the script below, any guidance or advice would be appreciated.

image

game.Players.PlayerAdded:Connect(function(player)
	local OwnedSwordsFolder = game.ServerStorage.OwnedSwords
	OwnedSwordsFolder:Clone()
	OwnedSwordsFolder.Parent = player
end)

fixed

game.Players.PlayerAdded:Connect(function(player)
	local OwnedSwordsFolder = game.ServerStorage.OwnedSwords:Clone()
	OwnedSwordsFolder.Parent = player
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.