game.Players.PlayerAdded:Connect(function(plr)
local stats = Instance.new("StringValue", plr)
stats.Name = "leaderstats"
local wins = Instance.new("IntValue", stats)
wins.Name = "Wins"
wins.Value = 0
local debounce = false
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Parent.Humanoid.Health > 0 then
if debounce == false then
debounce = true
print("You win")
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
wins.Value = wins.Value + 1
hit.Parent.HumanoidRootPart.CFrame = CFrame.new(234, 45.906, -114) end end)
wait(4)
debounce = false
end
else
print("You lost")
end
end
end)
end)
So Basically, when you touch the part, its supposed to give you 1 win only, but however it gives me 3 wins
