I'm new to GetChildren, this is my first time using it. The script I wrote does not work, and I'm not sure why.
function boom() local walkwaychildren = game.Workspace.Bridge.walkway:GetChildren() walkwaychildren.Anchored = false end script.Parent.ClickDetector.MouseClick:connect(boom)
Any help?
The function GetChildren returns a table, so you have to loop through the table.
When you loop through it, you loop through every part or object inside the GetChildren object
Here is a script for what your trying to do:
local model = game.Workspace:WaitForChild("Bridge")--Change variable for i,v in pairs(model:GetChildren()) do v.Anchored = false end
Glad to help, if this helps please accept this answer, it gives us both rep!