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 |