I have a fairly popular sword fighting game, and I plan on expanding it soon. However I’d run into a problem that somewhat ruins the game. The classic rblx sword is super easy to have reach on and putting stud caps or bounding boxes (the current way I’m doing it) can lead to inaccurate hitboxes which may ruin the experience for people. I’d been wondering if anyone has any good solution to keep it somewhat accurate but make it difficult for exploiters to reach. Slight reach is a very big problem and is hard to catch by the moderation.
You can do magnitude checks between the sword’s victim (the touched victim) and the sword:
Something like (not a full script, just how you would do it):
if (Sword.Position - HumanoidRootPart.Position).Magnitude < 15 then -- to check if the distance between the sword and the humanoid root part is lower than 15 studs)
--Do stuff like remove hp of victim etc
end