Debounce won't turn off

my debounce doesn’t seem to turn off after i added this If code

Code:

mouse.Button1Down:Connect(function()
		if db == false then
			db = true
		local smash = player.Character.Humanoid:LoadAnimation(script.smash)
		smash:Play()
		wait(0.13)

			local pos = mouse.Hit.Position
			local Mag = (mouse.Target-player.Character.HumanoidRootPart.Position).magnitude
			if Mag <= range then
			script.Parent.lts:FireServer(pos,mouse.Target)
		end
		
			wait(0.4)
			db = false
			end
end) 

When changing it back to false, the debounce scope MUST be inside the scope where the debounce was set to true.

If you look closely you’ll see that it is, it’s just indented really badly.
It could be changing to false, but since the delay is 0.4 it’s too fast for you to notice.