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

How do I make my feet do damage if I do an animation?

Asked by 7 years ago

Is it possible to make your feet do damage i'm using R15. Also I only want the foot to do damage during the animation. Is this possible with a local script or do I have to create a tool and do some welding shenanigans?

1 answer

Log in to vote
0
Answered by
blowup999 659 Moderation Voter
7 years ago
Edited 7 years ago
function footTouched(part)
    if part.Parent:FindFirstChild("Humanoid") and animationTrack.IsPlaying then
        part.Parent.Humanoid:TakeDamage(10)
    end
end

char["Left Leg"].Touched:connect(footTouched)
char["Right Leg"].Touched:connect(footTouched)
Ad

Answer this question