improvise

Definition

To create or perform something on the spot, without prior preparation.

日本語 事前に準備がなく、即興で何かを作り出す、または演奏する

Example

"The actor had to improvise his lines when the script was lost during filming."