Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How can I make a humanoid that gives money on shot?

Asked by 10 years ago

Hey, I'm making a game, and I want a way to make a zombie that gives you money on shot, and even more money on kill. -SystematicV

1 answer

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

Since I don't know what code you're working with, here are some pointers:

1) Change the name of the Zombies' Humanoids, so that they are different from the Player's Humanoid. 2) Fix any bugs that may create in the zombies. Easily done by renaming "Humanoid" in the zombie scripts to whatever you renamed the humanoid to. 3) In the gun script, look for where it deals damage. 4) Change it so that it deals damage to your new humanoid name, not "Humanoid" 5) Add an if statement check to see if the shot kills the zombie. If it does, award the kill points. If not, award the shot points.

Ad

Answer this question