i have a problem with transitioning!
For example:
i have an object and a button. I want this object to fade out when i press the button, and then when i press the button again i want my object to fade in.
But i can't fade in my object, feels like it's just gone!
For transition i use transition.to, for ex:

object = transition.to( object, {time=500, alpha=0})

but when i perform another function in this exact scene to fade in, it just don't wanna work at all(button is pressing, but nothing is happening, even errors).

After you write this trans = transition.to( object, {time=500, alpha=0}) in button pressed first time so you must chick make boolen variable to make this action twice.
and second time which fade it in again you must make alpha=1