So i made an Sofa* and it has Humanoid Thingy inside that model So i made if the health is 0 or is lower than 0 it brokes like every part anchored is going to be changed 0 but it does not seem to work can someone explain and fix this one?
local children = workspace:GetChildren()
repeat
if script.Parent.Humanoid.Health == 0 or script.Parent.Humanoid.Health <= 0 then
for i,v in pairs(script.Parent:GetChildren()) do
v.Anchored = false
end
end
until nil

1 comment
many thanks.