I need help scripting a kill NPC for cash script?
I am trying to make a zombie game for me and my friends to play but I don't know how to make it so you gain cash for each kill. I want it to be different for each different zombie.
Info: The currency is "Cash"
Here is also the leaderboard script:
01 | print ( "Cash Leaderboard Loaded" ) |
04 | function onPlayerEntered(newPlayer) |
06 | local stats = Instance.new( "IntValue" ) |
07 | stats.Name = "leaderstats" |
09 | local cash = Instance.new( "IntValue" ) |
13 | stats.Parent = newPlayer |
18 | game.Players.ChildAdded:connect(onPlayerEntered) |
Thank you to anyone that helps