Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Cloning models in a table?

Asked by 3 years ago

Help me with this script

So I was making a script where copies specific things in the workspace but I wanted it in one table but it keeps giving an error attempt to get the length of a number value

By the way, it's in a local script.

local s = {
    workspace.test,
    workspace.test2

}

for i = 1,#s do 
    i:Clone().Parent = ViewportFrame
        i:Clone().Parent = ViewportFrame2
        print("copied to map")
end 

Answer this question