How do you make a cash on kill script where you get different amounts of money on different sword

i created my cash on kill script I just need to know how to make it so I earn different amounts of money on different swords. My leader stats for money is coins.

1 Like

this dicussion must change to #help-and-feedback:scripting-support

1 Like

Moved to Scripting Support. Do not misuse categories, always read the pinned About topic in the category before posting there.

1 Like

The idea here is that you need to know what sword was used to kill a player in the first place to do that. You haven’t shared your implementation so we can’t necessarily help you with code samples and all that, but in whatever way you’re going about granting cash, add an identifier of some kind about what sword was used to kill a player, then award cash based off of its value.

2 Likes

Oh Ok that makes it a lot clearer thank you I’m sort of understanding scripts more thank you :smiley: