local coolDown = 2
local lastAction = 0
local canZoom = script:WaitForChild("canZoom")--naturally true
local function lastPressed(input)
if tick() - lastAction < coolDown then
canZoom.Value = false
task.wait(coolDown - (tick() - lastAction))
canZoom.Value = true
else
canZoom.Value = true
return
end
print(canZoom)
lastAction = tick()
end
--Pressed
local function camera_Zoom(input: InputObject, gpe: boolean)
if gpe then return end
if input.KeyCode == Enum.KeyCode.G and canZoom.Value then
isZoomed.Value = true
lastPressed(input)
interpolateCamera()
end
end
i can spam click and theres 0 delay