Skip to content

Available primitive types

ByteNet provides a large amount of "primitive" types for you to build more complex types that suit your game. Since primitive types don't need any parameters, you can just access them like the following: ByteNet.<typename>. For building more complex data structures, go look at the Specials page.


Supported general types

  • string: String
  • buff: Buffer
  • bool: Boolean
  • nothing: Nothing
  • unknown: Any type

Supported number types

  • uint8: Unsigned 8-bit integer
  • uint16: Unsigned 16-bit integer
  • uint32: Unsigned 32-bit integer
  • int8: Signed 8-bit integer
  • int16: Signed 16-bit integer
  • int32: Signed 32-bit integer
  • float32: Standard 32-bit float
  • float64: Standard 64-bit float

Supported Roblox types

  • cframe: CoordinateFrame
  • vec2: Vector2
  • vec3: Vector3
  • inst: Instance