Hey there,hope you are well.I am having a problem.I wanted to make a kill brick that kills and gives a death (Int value) to the player,but i dont want it to repeat with the same brick and with the others,anyways here's the code:
script.Parent.Touched:Connect(function(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
hit.Parent.Humanoid.Health = 0
player.leaderstats.Deaths.Value = player.leaderstats.Deaths.Value + 1
end
end)
****Note:All the kill brick have the same code above
I would be so thankful if you find a way to solve and make this work

3 comments
If you wish for the Touched event to only run once, use a :Disconnect() approach.
tbh i dont really good at english, do you means for the kill brick that people have touched on it, it's only kills once but they keep kills but no adding death after a people died at that brick, right or not?
The problem is down in the reply of Jack_Roblox2008's answer.