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

How to create a script that every time you kill a specific NPC you get money? [closed]

Asked by 7 years ago

--[[PS:i am just a beginner at scripting and i already created a leaderboard ]]

NPC = script.Parent

NPC:FindFirstChild("Humanoid").Died:connect(function() coins = player.leaderstats.Coins coins.Value = coins.Value + 10 end)

0
How is this non-constructive? He made an attempt. hiimgoodpack 2009 — 7y

Closed as Non-Descriptive by Andorks

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?