of     1   

InternInternetIdiot
#156718686Wednesday, February 25, 2015 5:48 AM GMT

a = script.thing:clone() children = script.Parent.Parent:GetChildren() for i =1, #children do if children[i] ~= nil then if children[i]:IsA("VehicleSeat") then a.Parent = <- What do I put there? end end end I'm blue I'm in need of a guy, If I were green I would die, I repeat I would die, I got more apple pie, Bacon I fry.
Wittiest
#156719283Wednesday, February 25, 2015 6:11 AM GMT

a.Parent = <- What do I put there? You put where you would like the clone of the "thing" being cloned inside of the script to go.
Wittiest
#156719377Wednesday, February 25, 2015 6:15 AM GMT

children = script.Parent.Parent:GetChildren() for i =1, #children do if children[i] ~= nil then if children[i]:IsA("VehicleSeat") then local a = script.(WHAT YOU WANT TO CLONE HERE):Clone() a.Parent = (WHERE YOU WANT WHAT YOU CLONED TO END UP) end end end I am assuming that you want to clone the items in the script's Parent.Parent in which case: for i =1, #children do if children[i] ~= nil then if children[i]:IsA("VehicleSeat") then local a = children[i]:Clone() a.Parent = (WHERE YOU WANT WHAT YOU CLONED TO END UP) end end end
InternInternetIdiot
#156754080Wednesday, February 25, 2015 11:54 PM GMT

NoNo, I need to clone into the children e.g a = script.Parent:clone() a.Parent = Children if you get me? I'm blue I'm in need of a guy, If I were green I would die, I repeat I would die, I got more apple pie, Bacon I fry.
Happywalker
#156755043Thursday, February 26, 2015 12:07 AM GMT

Loops. :Clone(), not :clone()
Happywalker
#156755122Thursday, February 26, 2015 12:08 AM GMT

Clone the thing inside the loop
Wittiest
#156755928Thursday, February 26, 2015 12:19 AM GMT

a=script.Thing:Clone() children=script.Parent.Parent:GetChildren() for i = 1, #children do if children[i] ~=nil then if children[i]:IsA('VehicleSeat') then a.Parent= script.Parent.Parent:FindFirstChild(tostring(children[i]) end end end This will work. Sorry for the confusion m8

    of     1