Debounce not working

what the problem of this script the debounce not working

local UIS = game:GetService(“UserInputService”)

local Player = game:GetService(“Players”).LocalPlayer
local event = game:GetService(“ReplicatedStorage”).Stand.TW.Knife

local db = true
local CD = 10.65

UIS.InputBegan:Connect(function(input,gamepro)
if gamepro then
return
elseif input.KeyCode == Enum.KeyCode.T then
if Player.Character:FindFirstChild(“Stand”) then
if Player.Backpack.Value.UsingMove.Value == false then
if db == false then
db = true
event:FireServer()
wait(CD)
db = false
end
end
end
end
end)

Change line 6 from

local db = true

into

local db = false

you have to set debounce as false, and not true

and why this debounce not working?

RMove.MouseButton1Click:Connect(function()
local debounce = false

if debounce == false then
	debounce = true
	REvent:FireServer()
	wait(10.65)
	debounce = false
end

end)

Try to put the local debounce = false above the RMove.MouseButton1Click:Connect(function() line