for i,v in pairs(script.Parent:GetDescendants()) do
if v:IsA("Model") then
v.Parent = game.ReplicatedStorage
end
end
Is there a way I can prevent the model from ungrouping by itself?
for i,v in pairs(script.Parent:GetDescendants()) do
if v:IsA("Model") then
v.Parent = game.ReplicatedStorage
end
end
Is there a way I can prevent the model from ungrouping by itself?
Your script works for me…
What’s the parent of the script?
Since you’re recursing through the object’s descendants any models that are descendants of other models will be moved as well. I’m not sure what the context of this is, but have you tried using GetChildren instead of GetDescendants?
It doesn’t do anything (30 caaaaaaaaaaars
The parent is a frame. (chaaaaaaaaaaaaaars)
OH WAIT IT WORKS NVM LOL (30 chaars) one of my models had multiple models inside