Loops with modules and functions

INTRODUCTION --------------

Hey developers, I’m working on a tween effect and I can’t seem a way to loop it either my function format is completely wrong (if so correct it if you can) or it breaks the effect itself.

PROBLEM: --------------

on the 2nd row, there will be a different effect than I want looped inf as well so all together at the same time basically.

this is how the effect is the layout

everything works perfectly fine but it only runs one time since it isn’t looped.

I saw a couple of examples of things I can do and I put this together really fast

(correct this if you can as I know its wrong how the function and :waitforchild is put in place)

would put everything in a function be officiant? as I don’t wanna do the core() multiple times to achieve my effect as I want it looped inf.