I have been playing swinging animation and handling the hit detection on client, then sending to the server what did i hit and server fires an all client event for vfx and sounds.
With higher ping, the player swings the sword, gets a light camera shake as intended and then after noticeable sound the blood vfx and hit sound plays.
Should i just move playing swinging animation and hit detection on server to have less ping on it? or is there a way around it using client, without considering exploiters, my main concern is performance since server is already having to handle alot of npcs with not very simple behaviour.
Im using shapecastHitbox for hit detection right now.