When you pass a function as a parameter, you should pass it without the parenthesis. If you use the parenthesis, Lua thinks that you are calling that function.
The transition will pass a default param to the function that you are calling, so your onComplete function should be defined as
local function tweenEvent(params) 'your function code here end function
I don’t know if that params has a information that you can use to identify if it was called by the onStart or by onComplete event. If not, just break your function in two functions (one for onStart, one for onComplete).
When you pass a function as a parameter, you should pass it without the parenthesis. If you use the parenthesis, Lua thinks that you are calling that function.
The transition will pass a default param to the function that you are calling, so your onComplete function should be defined as
local function tweenEvent(params) 'your function code here end function
I don’t know if that params has a information that you can use to identify if it was called by the onStart or by onComplete event. If not, just break your function in two functions (one for onStart, one for onComplete).