Okay so I’ll explain my combat system entirely, that might help.
Players have 4 weapons. A sword, Axe, Spear, and Hammer. I have these set up as tools because of this post (How to make a skin system like zo?). As tools I can simply change their models to change a skin.
So for damage I’m using this (Raycast Hitbox 4.01: For all your melee needs!) Pretty much im going to parent the raycast attachments to the tool and have them welded to the handle, that way no matter the skin, hitboxes are the same.
So this is how combat will work-
All 4 weapons are in the player’s Hotbar. When they equip a weapon it’ll weld it to their body and bind an unsheath action. When this unsheath action is fired it does multiple things. First it plays an unsheath animation and then when it hits a certain key frame in the animation it’ll destroy the body weld for the weapon and weld it to their hand. Then it unbinds the unsheath action, binds the sheath action, binds all the combat actions (attack, block, dash), unbinds sprinting, and also disabled the Hotbar, Then when a player press sheath it fires the sheath action, which essentially reverses everything.
I want the system to be seen by everyone. And since if it’s client sided then no one can see anything, hence I was switching it to the server to make my life a billion times easier.
“ Just store the damage and other values on the server. And just send the attack event:
Then you dont have to make the client send any values to the server!”
So, im 99% sure the raycasting part is server sided, so that’s handled. However I want every player to be able to see the combat system (anims, VFX, sheath/unsheath, attacks, blocking, etc). Any solutions?