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
Do you mean that the kill bricks keeps kills but they don't makes the player's DEATH's intvalue any changes or the brick doesn't kill if someone get killed on the brick?
Comment below so i can get nofication on this, and Ill edit later so Ill post comment on the question so you can get noficated if I edited my answer, and lastly, thanks.