Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a giving points on death system ?

local Humanoid = script.Parent.Humanoid

function Dead()
        local tag = Humanoid:FindFirstChild("creator")
        if tag ~= nil then
        if tag.Value ~= nil then
            local leaderstats = tag.Value:FindFirstChild("DummyKilled")
            if leaderstats ~= nil then
                leaderstats.Value = leaderstats.Value +1
                wait(0.1)
                script:Remove()
            end
         end
      end
   end

Humanoid.Died:Connect(Dead)

Hey , I wanted to make a quest that when you kill 5 dummies it gives you something, there is the dummies scripts but it simply dont work.. The NumberValue is in the Humanoid of the players and im using a custom sword that I made

1 answer

Not sure if the tag would go away on death or not when inside Humanoid. Maybe put the tag in StarterGui or something.

This discussion is preserved as it was. New answers, comments, and votes are closed.