RobloxAPI / spec

Specifications related to Roblox.
Creative Commons Attribution Share Alike 4.0 International
13 stars 3 forks source link

AttributesSerialize: Add CFrame type. #12

Closed Anaminus closed 2 years ago

Anaminus commented 2 years ago

As of https://devforum.roblox.com/t/2039308, CFrames are now supported in attributes. The format matches the CFrame property type in the RBXL format. It has an attribute type ID of 0x14.

type CFrame struct {
    Position Vector3
    Special  uint8
    if .Special == 0 {
        Rotation [9]float32
    }
}
Anaminus commented 2 years ago

This format is assumed based on checks made years ago, when attributes first came out. The format should be checked again and verified to make sure no changes have been made.