Structs
Structs are quite simple.
A struct represents a fixed set of string keys and value datatypes.
Structs are not guaranteed to have exactly the field order you defined them with, but the order of their fields is identical on client and server.
You can define a valid struct Datatype using a simple table, just like luau:
-
Struct Merging
Because of this design, merging structs together is as simple as writing a table merging utility:
struct_merge.luau
Using the above table syntax will behave the same as passing the table into the API shown below.