Help with hitbox hitting shots it shouldn't

recently in my game, the NPCs have been able to hit shots they shouldn’t be able to hit (the player appears to be far out of their range, but still gets hit). hit box module is hitbox service.

on hitbox being called

function AnimatronicModule:FireHitbox()
	local NewHitbox = HitBoxModule:CreateWithPart(self.Hitbox, Params)
	NewHitbox:Start()
	
	local HitTable = {}
	
	local Items = NewHitbox:GetItems()
	for i,Object in pairs(Items) do 
		self:HandleHitboxTouch(Object, HitTable)
	end
end

I’m pretty sure the hitbox issue is happening cause of server client difference, how could I solve this? (I am willing to use different modules)

The red box is the hitbox, I am clearly out of the range.

Ping

yeah I know that, but how do I counter it?

By doing hitboxes on client

that would be exploitable, would it not?

well yes but it’s either that or delayed hitboxes.

good point.

I changed all the detection to the client. still bad hitboxes.

I stopped using .Touched and I am using GetPartsinPart and its working great now

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.