How can i make it so that when i press a key it wait a couple seconds until i press the next key else end this is my script:
local Player = game.Players.LocalPlayer
local Character = Player.Character or script.Parent
local UserInputService = game:GetService("UserInputService")
local Debounce = false
local one = 'Z'
local two = 'X'
local three = 'C'
UserInputService.InputBegan:Connect(function(Input, IsTyping)
if IsTyping then return end
if Input.KeyCode == Enum.KeyCode[one] then
if Input.KeyCode == Enum.KeyCode[two] then
if Input.KeyCode == Enum.KeyCode[three] then
print("power or what ever here")
end
end
end
end)
in this case after i press z it would wait a bit for me to press x and so on if i were to press z then x then c it would do something.
