Please help! |Script!|
local ting = 0 --debouncer
function onTouched(hit)
if ting == 0 then
ting = 1 --activate debounce
check = hit.Parent:FindFirstChild("Humanoid")
if check ~= nil then
local user = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = user:findFirstChild("LeaderStats")
if stats ~= nil then
local cash = stats:findFirstChild("Deaths")
Deaths.Value = Deaths.Value +1
wait(1)
end
end
ting = 0
end
end
script.Parent.Touched:connect(onTouched)

2 comments
Im so sorry if its bad!
Ill hrlp but next time dont use something out of the toolbox.. i found 10 different objects using the same script as you just used. But as said ill help.