Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I clone everything inside a folder?

This is similar to what I have:

local location = game.ServerStorage.Weapons:GetChildren() 
location:Clone().Parent = player.Backpack 

everytime I do this I always get an error saying 'attempt to call method 'Clone' (a nil value)' everything is in the folder, there is no reason for it to say that. Unless im doing something wrong...

Please help, I really do appreciate it!

1 answer

✓ Accepted answer

'attempt to call method 'Clone' (a nil value)' exactly what it says

:Clone().Parent can only be used once.

Do

local location = game.ServerStorage.Weapons:GetChildren()
for i,weapons(location) do
weapons:Clone()
end

1 comment

0

thank you very much! I havent realized that, than you again.

This discussion is preserved as it was. New answers, comments, and votes are closed.