How do I anchor an entire model with models within it?
I am making a boat with an anchor function, that whenever you press the button. It anchors/un-anchors at will, here is the script:
script.Parent.ClickDetector.MouseClick:Connect(function()
print("Anchoring")
for _, v in pairs(script.Parent.Parent.Parent:GetChildren()) do
v.Anchored = not v.Anchored
end
end)
Here is a photo of the model:
I want it so that it checks all children of the model itself. And Check if the models contain parts/models etc.
Please, help would be appreciated.