So i am making an ‘ability’ feature for weapons that I’m making in my game that makes them do a unique set of movements that deals damage to other players/NPCs in unique ways.
I’m also adding effects to the abilities to make them stand out more.
But here’s the question, someone had been recommending to me that I should script the ability in client but I’ll need to use a server script for at least some of its features so that the abilities can have an effect on other players (e.g. damaging players doesn’t work on client script).
Should I exclusively use a server script or both a client and a server script for different parts of the ability function? What parts of the ability should be scripted in a client script and what parts on a server script?
For each ability, ill need to add these set of features:
- An animation and sound FX (doesn’t affect gameplay but visible to everyone).
- Potentially some movements that affects the players’ gameplay.
- Visual effects for the ability to add ‘character’ to an ability however it an also be used as a AOE where it would affect the player if it in contact within the area of the visual effect. I could separate the visual effects from the hitbox but adding both would be unnecessary hard work.
- A damaging/character effect system that triggers when an ability’s range/area gets in contact with a player’s hitbox, (can use a script or a part to detect this) and affects the character when hit by the ability.
Thank you