How to make a Death counter in ROBLOX

Опубликовано: 16 Июль 2026
на канале: TEAM NO
2,242
38

This is really easy. Paste this code inside of SERVERSCRIPTSERVICE. Enjoy!


local plrs = game.Players


plrs.PlayerAdded:Connect(function(plr)

local stats = Instance.new("Folder")
stats.Name = "leaderstats"
stats.Parent = plr

local wipeouts = Instance.new("IntValue")
wipeouts.Name = "Wipeouts"
wipeouts.Value = 0
wipeouts.Parent = stats

plr.CharacterAdded:Connect(function(char)

local humanoid = char:FindFirstChild("Humanoid")

humanoid.Died:Connect(function()

wipeouts.Value = wipeouts.Value + 1

end)
end)
end)