local Activate = game:GetService("ReplicatedStorage"):WaitForChild("Stand1"):WaitForChild("Barrage") local UIS = game:GetService("UserInputService") local debounce = false local cooldown = 5 -- the cooldown of your barrage local isBarrage = "Barrage Happening" local canBarrage = "Barrage cooldown finished" UIS.InputBegan:Connect(function(input, isTyping) -- When A key is presses if isTyping then -- if he's typing in the chat it will do nothing return elseif input.KeyCode == Enum.KeyCode.E then -- when the key is E change it to whatever you desire if debounce == false then debounce = true print(isBarrage) Activate:FireServer() end end end) Activate.OnClientEvent:Connect(function(Player) wait(cooldown) debounce = false print(canBarrage) end)