local player = game:GetService("Players").LocalPlayer
local rp = game:GetService("ReplicatedStorage")
local summon = rp:WaitForChild("Summon")
local uis = game:GetService("UserInputService")
local isactive = false
local debounce = false
local cd = 1
uis.InputBegan:connect(function(Input,istyping)
if istyping then
return
elseif Input.KeyCode == Enum.keycode.Q then
if debounce == false and isactive == false then
isactive = true
debounce = true
summon:fireserver(isactive)
wait(cd)
debounce = false
elseif debounce == false and isactive == true then
isactive = false
debounce = false
summon:fireserver(isactive)
wait(cd)
debounce = false
end
end
end)
ERROR:keycode is not a valid member of "Enum" Line:15

1 comment
oh ok thanks