You have to link to the object you want to fade.
game.CurrentScene.Objects["example"]:to(750, {Visibility = 0})
The last 3 parameters are optional, but if you want to specify loop for example, then you also need to include the easing you want to use. By default the easing is easeLinearInOut.