Hello I’m current working on my fps framework, but I don’t know the best way to make hit detection for bullets.
Currently I’m using raycasting for bullet hit detection:
local hit = game:GetService("Workspace"):Raycast(bullet.Position, bullet.CFrame.LookVector * self.velocity, self.raycast)
It makes a ray and the length is the bullet velocity.
With this there are some hit register issues, so I’m wondering if there is a better way of making bullet hit register or maybe I already got the correct idea but I executed it incorrectly.
Any help or feedback would be greatly appreciated!
please do not suggest FastCast, I already tried it, it’s good but I’m trying to make my own system