So i'm trying to clone something into multiple parents and it seems to work but when it clones it never stops so it just keeps cloning into the parents, why?
local clone = script.Parent.OfferTrade:Clone() for i, v in pairs(script.Parent.Parent.Frame:GetChildren()) do clone:clone().Parent = v end
try this
local clone = script.Parent.OfferTrade:Clone() for i, v in pairs(script.Parent.Parent.Frame:GetChildren()) do clone:clone().Parent = v script.parnt:remove() end
or if you want
local clone = script.Parent.OfferTrade:Clone() for i, v in pairs(script.Parent.Parent.Frame:GetChildren()) do clone:clone().Parent = v wait(999999999999999999999999) -- change the number to how much you want wait to work again end
-- It's always good to use WaitForChild local thing= script.Parent:WaitForChild("OfferTrade") local frame = script.Parent.Parent:WaitForChild("Frame") for i, v in pairs(frame:GetChildren()) do local clone = thing:Clone() clone.Parent = v --Parents the clone wait(0.2) -- Acts as a sort of debounce, to prevent it from going to fast end
Hope this helps :D