Message
Message does the same thing as a light.container()
, but doesn't force you to put it in a
string map.
function light.message
(On The Client)
function light.message
(On The Server)
template
in both above samples should always be any valid Datatype.
This includes Datatypes like arrays or maps that are defined with luau tables.
I.e., { light.datatypes.u8 }
If you wanted to create messages en-masse without restricting yourself to the structure of a container, this can be very useful. You could also use it to re-invent the wheel:
Is equivalent* to: