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

Combat Hitboxes are janky and only sometimes connect. Any alternatives?

Asked by 2 years ago

I'm attempting to make a fighting game which for a beta test, uses a sword that has a hitbox on it which is just a transparent part. I use the Instance.Touched event to check when the hitbox is touched, and a boolvalue called "Attacking" to check if the player is currently attacking.

The problem is however, the hitboxes on these swords feel super janky, and even only sometimes hit (Mostly when the player is moving). Is there any way that's better to do this? (There's not really any good code to show for this)

Answer this question