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

How Do I Make A Script That Drop An Item Like Coins When Kill A Player?

Asked by
ImfaoXD 158
8 years ago

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.Cash.Value = Leaderstats.Cash.Value + 3 --Change Money to the stat that is increased. wait(0.1) script:remove() end end end end Humanoid.Died:connect(PwntX_X)

0
Convert that into LUA text. I can BARELY read that. groovydino 2 — 8y

Answer this question