whats supposed to be going on in this script is that itsa breakjoints script but it only breaks objects at a certain speed, doesnt take the players accessorys off. i noticed when a bunch of parts that had this script in them fell and broke all at the same time. i may have to try a different method than this but it would be nice to have any suggestions. heres the current code
script.Parent.Touched:Connect(function(part) local h = part.Parent:findFirstChild("Humanoid") local g = part.Parent.Parent:findFirstChild("Head") local s = script.Parent.Velocity.Magnitude local w script.Parent:GetConnectedParts("part") < ---- heres my problem if h==nil then if g==nil then if s>10 then if ( (if part=)==nil < ---- heres another problem) then part:BreakJoints() end end end end end)
thank you for your time.