of     1   

Fatalizer
#142465402Sunday, August 03, 2014 10:16 AM GMT

This is my script; for _, v in pairs (Workspace:GetChildren()) do if v:IsA("BasePart") then v:BreakJoints() end end I want every brick in the Workspace and Workspace models to breakjoint, it just won't work , does anyone got a fix ?
Fatalizer
#142465427Sunday, August 03, 2014 10:17 AM GMT

Have a fix*
KiwiTronik
#142465457Sunday, August 03, 2014 10:18 AM GMT

for _, v in pairs (Workspace:GetChildren()) do if v:IsA("Model") then v:BreakJoints() end end ~I'm an Angry Llama~
KiwiTronik
#142465562Sunday, August 03, 2014 10:20 AM GMT

function break(model) for _, v in pairs (model) do if #v:GetChildren() >=1 then break(v) end if v:IsA("Model") then v:BreakJoints() end end end break(workspace) BreakJoints, EVERYTHING in workspace ~I'm an Angry Llama~
Fatalizer
#142465885Sunday, August 03, 2014 10:29 AM GMT

The first line of the script; function break(model) -- will error
Fatalizer
#142574025Monday, August 04, 2014 1:34 PM GMT

Bump
KiwiTronik
#142668814Tuesday, August 05, 2014 9:21 AM GMT

Did mine not work? Fixed:? function breakk(model) for _, v in pairs (model) do if #v:GetChildren() >=1 then breakk(v) end if v:IsA("Model") then v:BreakJoints() end end end breakk(workspace) ~I'm an Angry Llama~
YamamotoTaka
#142672410Tuesday, August 05, 2014 11:27 AM GMT

Kiwi here is your error: for _, v in pairs (model) do You assigned model as Workspace, but it has to be a table
Scrippa
#142674634Tuesday, August 05, 2014 12:26 PM GMT

for _,v in pairs(Workspace:children()) do if v:IsA("BasePart") or v:IsA("Model") then v:BreakJoints() end
Fatalizer
#142704806Tuesday, August 05, 2014 7:54 PM GMT

You forgot another "end" , but it works. Thanks good Sir.
KiwiTronik
#142770294Wednesday, August 06, 2014 11:01 AM GMT

OH RIGHT how silly of me haha ~I'm an Angry Llama~

    of     1