Calling a variable

I have made a function that looks like this:

function Create:FuncBox(x,y,z,w,h,d,call)
    if Player.x>x and Player.x<x+w and Player.y>y and
    Player.y<y+h and Player.z>z and Player.z<z+d then

And I call a function from it, like this:


Where “test” is my function. Now the problem is that I want to call a class function: “Test:run” for example but
that generates an error. Now what do I do to make that work?

Try this:

Create:FuncBox(0,-1,0,1500,800,1500, function() Test:run() end)

Thanks! It worked!