Thing not working

arcade video plus audio not working when i put it in overlaps with block it gives three errors

A namespace declaration is only allowed in a namespace or module

Type ‘Buffer’ is not assignable to type ‘number’.
Type ‘Buffer’ is not assignable to type ‘number’

Argument of type ‘number’ is not assignable to parameter of type ‘Buffer’

share thy project

1 Like


Every time it is converted to blocks, this function gets forced to be a number instead of a Buffer.
To fix this, I made your code convert the buffers to arrays and then back again. The main issue with this is that it’s kinda laggy, and I don’t know if it’s that or something else but I cannot figure out what the audio is saying. Anyways, here’s the (hopefully) fixed project: