How would i add a hitbox for a projectile that is movong by assembly linear velocity?

So im trying to make a script which a cannon fires every second to the nearest player and i have it so it fires all clients for the cannon ball to be smooth and i want the actual hitbox to be on the server. I want to avoid a large hitbkx part also affected by assmebly linear velocity and just doing :GetPartsInParts() since idk about lag compensation but i think right now its my only solution.

Also how would i implement lag compensation for projectile hitboxes using multiple raycasts in general?

1 Like

Assuming the cannon’s trajectory isn’t affected by anything, you can use raycasting in server to check for potential characters limbs that are hit.

1 Like

But my projectile is affected by physics and curves?

1 Like