It is quite advanced to create blocks in Custom Studio, if I do this I use Chat GPT to create the necessary code, in this post it will say what you need to do, you can pretty much copy and paste my post into ChatGPT and tell it what you are doing, compile the code in FX (maybe a few times with corrections (you can ask ChatGPT to correct)). This was the post: https://fxdreema.com/forum/topic/21088/custom-function