Problem with viewmodels and melee hit registration

theres a slight problem i keep having that if i didnt fix, would make the melees have no tacticality to them.

i know what the problem is:

the viewmodel (which is just the players arm motor6D’s put onto a part that copys the rotation and position of the camera) is client, while the melees hitreg is server, so instead of checking if the melee in the viewmodels hands has hit anything, its checking the server playermodels melee to see if it hit anything.
to make it easier to understand:
intead of checking the viewmodel melees hitreg, its checking playermodels melee hitreg.

i know how to fix it (i think):
i need to somehow make the viewmodel serversided or atleast make it be able to work with the hitreg for the viewmodel melee, thing is, i really dont know how im supposed to code that.

viewmodel hitreg works with other scripts that just point the players arms to when the mouse is, but it looks weird and not as good as a viewmodel.

i could easily fix it by making melee hitreg clientsided, but i learned that clientsided hitreg isnt as accurate as serversided hitreg, making hitreg clientsided will make it really janky and not good.

i will keep you updated incase i fix it myself or someone else helps me, i wouldnt want to waste anyones time.

any help would really be appreciated! thankys!
and also im not asking to write a whole script for me, i just want some ways i could possibly fix it.