Before, it was a bit unclear, for a beginner, that this script need to require the in.onscreen module, and that the example code needs to be in a GUI script file to access the gui methods.
I also added .lua highlight on the code (that's what all the indention changes was for. Except for the first line with the require, all the example code is the same).
Before, it was a bit unclear, for a beginner, that this script need to require the
in.onscreen
module, and that the example code needs to be in a GUI script file to access thegui
methods.I also added .lua highlight on the code (that's what all the indention changes was for. Except for the first line with the
require
, all the example code is the same).