#how do i unanchor a model in a script
12 messages · Page 1 of 1 (latest)
unanchor all the children of the model!
loop through all of the children in the model, then unanchor them
With the script way you can for i v in pair loop like this
for i,v in pairs(script.Parent:GetChildren) do
If v:IsA("BasePart") then
v.Anchored = true
end
The i represents the order number
The v represenrs the object
Inside the pairs() function's parameters you put the model's children
In like 2 we check if it's a part and if it is then we anchor it
After all that done we can copy the model and stop the studio run thing and paste the model and then remove the script
Or the other way
You can just anchor the whole model's children
for loops used to be my bane
i stands for index
v stands for whatever idk
also the parameter in pairs() has to be a table, which is why you would use :GetChildren