Call of duty quick melee system

Similar to my weapon switching system, I have released a quick melee system like in call of duty, where you press V and you melee, then you switch back to your gun.


How to add a melee

Create a tool like you normally would, then put it into the “Melees” folder in ReplicatedStorage. The script activates the tool automatically, so whatever you set to happen on activated, will happen.


Model

Feel free to criticize, or ask for features. Comments are littered throughout the 2 scripts. I suggest adjusting the cooldowns in the scripts to how you like.

3 Likes

could you provide some screenshots or a video? thanks in advance.

Even though the code is very short, it works and is good for new learning developers! :+1:

1 Like

Here ya go.

2 Likes

is this writing fire :interrobang: :speaking_head: :fire:
good job :+1:

1 Like