How to change debounce in game?

I want to create a skill ingame that if u press it the one who get hit his cd multiplier but idk how to change player debounce ingame

You could use an Integer Value instead of a Variable and just change it once you want to.

Yielding Debounce Example:

local Debounce = false -- Debounce Boolean
local DebounceTime = game:GetService("ReplicatedStorage").DebounceTime -- The path to your Integer
DebounceTime.Value = 4 -- Default Value

Signal:Connect(function()
    if not Debounce then
       Debounce = true
       -- Code
       task.wait(DebounceTime.Value)
       Debounce = false
    end
end)

You should probably provide whatever script you’re working with.

this is my summon + debounce script

local Player = game:GetService("Players").LocalPlayer 
local event = game:GetService("ReplicatedStorage"):WaitForChild("Stand").TW.Summon 

local UInput = game:GetService("UserInputService")

local db = false 
local CD = 2



UInput.InputBegan:Connect(function(input,gamepro)
	if gamepro  then
		return
	elseif input.KeyCode == Enum.KeyCode.Q then 
		if db == false then
			db = true
			event:FireServer()
			wait(CD)
			db = false
		end
	end
end)

and i want to create a skill when the skill hitted i want to change the enemy debounce to 10 second

local Players = game:GetService("Players")
local Player = Players.LocalPlayer 

local Replicated = game:GetService("ReplicatedStorage")
local Remote = Replicated.Stand.TW.Summon 

local UserInput = game:GetService("UserInputService")

local Debounce = false 

UserInput.InputBegan:Connect(function(Input, Processed)
	if Processed then
		return
	end
	
	if Debounce then
		return
	end
	
	if Input.KeyCode == Enum.KeyCode.Q then
		Debounce = true
		Remote:FireServer()
		Debounce = false
	end
end)

What does the server script look like? There isn’t any hitting going on in this script.