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

Best way to deal damage with a punch?

Asked by
sheepposu 561 Moderation Voter
5 years ago
Edited 5 years ago

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

0
That is a primarily opinion-based question. Trollapse 89 — 5y
0
No, I'm trying to get suggestions on how to make my system of detection from a punch better sheepposu 561 — 5y
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." Trollapse 89 — 5y
0
Ok, sorry, let me rephrase my question then sheepposu 561 — 5y
View all comments (3 more)
0
No offense, that made it kinda worse. Trollapse 89 — 5y
0
I mean, touched can still be used effectively. Trollapse 89 — 5y
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 sheepposu 561 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

This is a good resource. I watched this Roblox Developer Conference Video from 2018. The presenter was very informative and offered some great insights and suggestions.

Roblox Developer Conference 2018 - Melee Combat: Design and Tech

Ad

Answer this question