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

Player's foot won't collide?

Asked by 5 years ago
Edited 5 years ago

I'm trying to make an amputation script where when a button is pressed a limb (LeftFoot) will fall off. I have everything working, but I want the foot to fall, It does fall but it won't collide no matter what I do. Here's the snippet:

LeftFoot.MouseButton1Click:Connect(function()

    if Amputate.Occupant ~= nil and Amputate.Occupant.Parent.LeftFoot ~= nil then
        Amputate.Occupant.JumpPower = 0
        Amputate.Occupant.Parent.LeftFoot.LeftAnkleRigAttachment:Destroy()
        Amputate.Occupant.Parent.LeftLowerLeg.LeftAnkleRigAttachment:Destroy()
        Amputate.Occupant.Parent.LeftFoot.LeftAnkle:Destroy()
        Amputate.Occupant.Parent.LeftFoot.CanCollide = true --Despite setting it to collide, it still won't.
        Amputate.Occupant.Parent.LeftFoot.Anchored = false
        wait(3)
        workspace.LeftFoot:Destroy()
        Amputate.Occupant.JumpPower = 35
    else
        warn("Nothing to amputate!")
    end
end)

Answer this question