Best way to make a simple yet effective melee system?

I know this has probably been asked many times before but, I just need someone to summarize how I could do a melee system like this:

  • Decent hitboxes
  • Mostly unexploitable
  • The ability to do several actions (Things such as light and heavy attacks, blocking, etc.)

Keep in mind I am looking for something fairly simple. Some things you could add is how to detect hits and what should be on the client/server.

1 Like

You can use Swordphin123’s Raycast Hitbox module for this. I use it and it’s great for my melees and easy to set up the hitbox.

This is mainly dependent on your scripting experience.
If you want several actions, you would have to script this in yourself for the weapon, likely using UserInputService (ex. holding Q to block).
For anti-exploit, you would have to script in checks on the server to make sure they aren’t (for example) trying to hit from impossible distances.

This is explained in the module obviously.

You’re able to use it on both client/server, but I think you’d prefer it to be on the client as there would be noticeable latency if it’s completely server sided. Once the client would detect a hit, you’d fire an event to some server script to handle it.

1 Like

Alright thanks, I will mark this as solution if it works for me.

1 Like