What is the most accurate way to get a good hitbox combat system? I tried raycasting and watched tutorials, but for some reason it just never works for me. The trail doesn’t show and the weapon does no dmg.
so, what is the most accurate hitbox system possible to make?
Check out this library, it’s pretty awesome.
Current Version: V.4.01 Stable (09/21/2021)
Upgrading from 3.xx to 4.0
Please note that V4 is not backwards compatible with V3. There are a few API changes that were introduced in V4 to better suit modern code etiquette. Here are the changes you need to know if you want to make your code compliant with V4:
Raycast Hitbox 4.01: For all your melee needs! - #597 by TeamSwordphin
Accurate, performant, and easy to use!
Use attachments or vectors to make your hitboxes in secon…
You can set up DmgPoint’s on your weapons/attacks and then the library handles hit detection for you, now you just have to connect to the event.
Do you mean like player collision boxes or weapon hit detection?
I would avoid raycast for certain situations, it uses animation CFrames, which sometimes don’t replicate well accross the server, but it is in general good, I personally just switched to part hitboxes after much debate, and switching in between, although I use a mix of GetTouching, Magnitude, and Raycasts these days!
ClientCast is a performant solution to melee hitboxes, allowing you to provide a smooth and lagless combat experience for your players. Why? Because ClientCast was designed with User Experience (UX) in mind - by calculating the hitbox on the client, not only is there no visual delay for when the player hits someone, but the player won’t miss the hitting targets due to a player’s ping! Not only is it easy for the client to have a smooth combat experience, but it’s also made extremel…
If that is a concern there is also this library that handles hit detection on the client. This would require sanity checks however to ensure exploiters aren’t being naughty
Im getting no dmg output when i try to set this up…not sure what im doing wrong.
How do you stop it from damaging the player? It also does dmg to me.
Or how do i make it stop doing damage to me lol
https://github.com/Swordphin/raycastHitboxRbxl/wiki/Beginner-Examples#utilizing-an-ignore-list strong text
Add the players character to the ignore list.
Check out the github it has all the examples and documentation
I’ve never used raycast or ignore list so do i just add the script to the current script or is the ignore list it’s own seperate script?
Add it to your current script.