THIS QUESTION HAS BEEN SOLVED
INFORMATION:
SCRIPT:
for i,coin in pairs(game.ReplicatedStorage.Coins:GetChildren(coins)) do if coin then local cl = coin:Clone(game.Workspace) else print("No coins found") end end
If you want to clone each object in the coins folder, all you'd have to do is:
for i,coin in pairs(game.ReplicatedStorage.Coins:GetChildren()) do local clone = coin:Clone() clone.Parent = game.Workspace end
BrainDead's answer is just completely wrong...
The parameter in clone is the parent, so if I wanted to clone a Part from Replicated Storage to Workspace, I'd do
game.ReplicatedStorage.Part:Clone(game.Workspace)
For GetChildren, the parameter is a table name, so if you do this code
game.ReplicatedStorage.Coins:GetChildren(coins)
I'd have a table called "coins" with all the children of ReplicatedStorage.Coins inside. Hope this helped!
for i,coin in pairs(game.ReplicatedStorage.Coins:GetChildren(coins)) do if coin then local cl = coin:Clone(game.Workspace) else print("No coins found") end end