I killed a NPC, my cash is 850 Next, I buy a sword in shop [Costs 650 Cash] then I kill the NPC My currency changed to 1100 (850 +250) idk why .-.
local Humanoid = script.Parent.Humanoid function PwntX_X() local tag = Humanoid:findFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then local Leaderstats = tag.Value:findFirstChild("leaderstats") if Leaderstats ~= nil then Leaderstats.Exp.Value = Leaderstats.Exp.Value + 250 Leaderstats.Coins.Value = Leaderstats.Coins.Value + 250 wait(0.1) script:remove() end end end end Humanoid.Died:connect(PwntX_X)
Closed as Not Constructive by programmerHere, WideSteal321, and royaltoe
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?