Math APIs

Functions

getboundingbox

(CFrame, Vector3) getboundingbox(parts: table, orientation?: CFrame)

Calculates the bounding box of a list of parts and returns its position (as a CFrame, optionally transformed by orientation) and size.

worldtoscreen

table worldtoscreen(points: table, offset?: Vector3)

Performs world to screen calculations on every Vector3 or BasePart in points and returns the result as a table with matching keys. offset can be provided to offset every position.