I want to achieve a script that has a script inside of it and it clones into all the children of the parent model.
Just look through the descendants:
for _, obj in pairs(Model:GetDescendants()) do
-- Code
end
for _, v in pairs(model:GetDescendants) do
local scriptClone = scriptToInsert:Clone()
scriptClone.Parent = v
end
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.