Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.