Raycast Hitbox 4.01: For all your melee needs!

I suggest overlap params since its suppose to succeed region3 in those aspects.

How would I make this double wield?

Does anyone else have the issue where once you first click it doesn’t register (aka the swing animation wont play), with it always working only after the 2nd mouseclick?

Decided to give this module a try again, and I’m still running into major reliability issues.

https://gyazo.com/ef5b7a58e2b9ac67adde2f77c0b43fb2

As you can see in this gif, I print the name of the hit object, and there’s no print with the second slash(even though the visualization clearly overlaps the other player).

Before it was written off as something that was inevitable when I posted about it before, but I had a 100+ player game using this module and I’ve gotten countless complaints about reliability issues with the swords, and the unreliability seems to be unacceptable from a competitive gameplay perspective. Lower frame rates seem to exacerbate the problem dramatically(I’ve heard reports of people with lower frame rates barely being able to hit stuff at all, and I’ve witnessed it myself a few times).

I’m not sure what’s going wrong. Can provide repro if you’re interested in taking a look, I’m very open to the possibility of it being a problem on my end.

1 Like

Having the same issue. It only triggers the OnHit event half the time even when the visualizers CLEARLY hit the target.

EDIT: All of my hit registration is on the server so its not a desync thing and it also happens even when I stand still.

1 Like

Excuse me, I can’t turn the plugin off. Is there a fix?

Hi there! Love your module, I have a question.
If it’s possible, how can I create a option in a “Settings” gui that toggles the Visualizer on and off?
This is going to benefit for debugging the raycasts to help me solve any possible issues.
Thanks.

I have an issue with your hitbox. It fails to register. Alot. I’m not sure why but it does.
Please help.

Same issue i’m having. Not sure why it works for some and others it doesn’t.

1 Like

How could I print the name of a part it hits, even if it’s not a body part, like let’s say a special block.

nahh bro stole all of the animations from criminality!

anyway, client cast is just the worse version of raycast, you can see the noticable delay yourself, and your better off making your own exploiter prevention

2 Likes

I’m a fan of the game if you havent noticed yet lol.

Yeah im not saying which one to use but I havent even tried Client Cast yet so I wouldn’t really know the difference.

Hey! Thanks for the wonderful module.

How can I make a right-click to block system?

This can be fixed by loading your animations earlier. It worked for me, at least.

1 Like

very cool. will try this out

learn to script :troll:

try preloading your animations

2 Likes

Sufferinf from the exact same problem, the reliability is off. I’m not sure why.

1 Like

I’m having trouble creating a combat system
how could i use ray cast for this

I’ve tried doing this
please let me know!

local char = plr.Character
	local arm = char:WaitForChild("Right Arm")
	local Hitbox = RaycastHitbox.new(arm)
	Hitbox.Visualizer = true
	
	--[[local att = Instance.new("Attachment")
	att.Name = "DmgPoints"
	att.Parent = arm]]
	
	Hitbox:LinkAttachments(arm.DmgPoint)
	
	Hitbox.OnHit:Connect(function(hit)
		if hit.Parent:FindFirstChild("Humanoid") then
			hit.Parent.Humanoid:TakeDamage(1.5)
		end
	end)
	
	Hitbox:HitStart()
	task.wait(.3)
	Hitbox:HitStop()

Hi! I am thoroughly enjoying your module, and is the foundation of hitbox detection in my fighting game! I have been having a great time, but there is one request that would make my experience a whole lot better. Currently, Hit Points are detected via the name of the attachment “DmgPoint”. I have many many groups of one hitbox all in one object, so It’s very tedious to identify all of them by group since they all have the same name. If there was an option for the module to identify attachments by an attribute instead of its name, I could change the names of different groups of hitboxes to be easier to identify.

Help! If I activate the weapon and then quickly unequip it then I get an output error which points out that Hitbox is nil (on the Hitbox:Stop line). How can I fix this?

Thank you for reading!

1 Like

Hey, I’m making a fighting game and I use your module. But when I create a hitbox in the server side, it’s making my game like, do you have any solution for it please?
Thanks you.