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

Best way to deal damage with a punch?

I have the animation and everything for the punch. Now comes detecting it. The first way I thought of, was to check for the hand touching something, do some checks, and if what the hand touched is an enemy, it would deal damage. I'd also have a bool value that can be used to know if the player is punching or not. The problem with that is, the player will have to be really close because of the way Roblox characters are. My second thought was to shoot an invisible and non-collidable block out of the players hand for a few studs and detect a hit that way, if this would be the best way, I'd need an explanation on how to do it. Other than that, does anyone know a system of detecting a punch? Thx in advance for any help

7 comments

0

That is a primarily opinion-based question.

0

No, I'm trying to get suggestions on how to make my system of detection from a punch better

0

"Questions locked as Primarily Opinion-Based are a rare occurrence. These may be questions asking what is better, which method is recommended or "most efficient", when there are multiple reasonable answers. The answer to these questions is typically up to the preferences of the person answering the question."

0

Ok, sorry, let me rephrase my question then

0

No offense, that made it kinda worse.

0

I mean, touched can still be used effectively.

0

Yeah, I'll try touch and see how it works. After that I'll check back here to see any answer that might have been posted

1 answer

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