Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

i have been making this advanced breakjoints script and i've come into a problem some help?

Asked by 6 years ago
Edited 6 years ago

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.

0
Just do normal breakjoints.... F4ULT1NTH3D4T4 226 — 6y

Answer this question