Skip to content

Output

light.output() is a function which allows you to use light's internal deserialization on your own DynamicWriter. Usually after you've called light.input() already.

function light.internal.output

Errors Client Server Shared Experimental Synchronous
1
2
3
4
function output<Data>(
    writer: DynamicWriter,
    type: Datatype<Data>
): (Data)

You'll need to provide a valid DynamicWriter, and Datatype. You can serialize the data with light.input().

Use correct data or pcall()

If the data is incorrect, this function may error.