Struct

From Legacy Roblox Wiki
Revision as of 22:49, 11 June 2010 by >Mr Doom Bringer (New page: A '''Struct''' or '''Data Structure''' is a special Data Type. It is a collection of several properties rolled into one property. {{LeftNoticeStart}}Data Structures are a kind of very si...)
Jump to navigationJump to search

A Struct or Data Structure is a special Data Type. It is a collection of several properties rolled into one property.

Data Structures are a kind of very simple object that only has properties. This is combined to act as one large property, which is then used in an object.

For example, the ResizeableFaces property uses a Struct named Faces. This Struct includes six Bool values.

So Structs are just collections of smaller properties, which are used as one big property.

  • Object
    • Some Property
    • Other Property
    • Property
      • Struct
        • StructProperty
        • StructProperty


Data Structures can use any type of other Data Type, Bool, Int, any of them.