game.Players.PlayerAdded:connect(function(player) local folder = Instance.new("Folder",player) folder.Name = "hiddenstats" local currency1 = Instance.new("IntValue",folder) currency1.Name = "Points" local addedhealth = Instance.new("IntValue",folder) addedhealth.Name = "AddedHealth" local addedjump = Instance.new("IntValue",folder) addedjump.Name = "AddedJump" local addedspeed = Instance.new("IntValue",folder) addedspeed.Name = "AddedSpeed" local usedcurrecy1 = Instance.new("IntValue", folder) usedcurrecy1.Name = "UsedPoints" player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() local tag = character.Humanoid:FindFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then currency1.Value = currency1.Value + 5 --This is the reward after the player died. end end end) end) end)
my problem is it does't give points, and how do i make it so that i does't give points after killing the same person who din't respawn yet or the person who got killed after 5 seconds?