I’m trying to make a normal combat system with a block and punch mechanic.
The issue is is that when a player punches someone and moves, the hitbox has no effect. I tried to set the network ownership of my hitbox to nil but my hitbox is anchored.
I’m wondering if using an alignposition and alignorientation with my hitbox is a good idea to solving this issue and then setting the net work ownership of the part to nil or should I just leave my hitbox anchored?
There are many ways to do hitboxes (like what the others have mentioned), but what I usually use is raycasting due to its performance and precision.
If you were to use raycasting, I suggest using modules like ClientCast (client-side hits, better for user experience – the exploitability and ways to circumvent it can be read in the post) or RaycastHitbox4.01 (good ol’ serverside, trades user experience for safety)
But then again, raycasting isn’t a one size fits all answer – depends on your usecase.