----

local cooldown = false
local zoomed = false
game:GetService("UserInputService").InputBegan:Connect(function(Key, gameProcessed)
	if not cooldown and not gameProcessed and Key.KeyCode == KEYBIND then
		cooldown = true
		if not zoomed then
			ts:Create(game.Workspace.CurrentCamera, TweenInfo.new(.4, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {FieldOfView = FOV}):Play()
			zoomed = true
		else
			ts:Create(game.Workspace.CurrentCamera, TweenInfo.new(.4, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {FieldOfView = 70}):Play()
			zoomed = false
		end
		script.scope:Play()
		wait(cooldowntime)
		cooldown = false
	end
end)
