kmfkmommy.blogg.se

Roblox lua libraries
Roblox lua libraries












roblox lua libraries

The formats support modifiers -, +, space, # and 0, as well as field width and precision modifiers - with the exception of *.Some libraries work only one way, and some only work the other way

  • s: expects a string and produces the same string verbatim.
  • q: expects a string and produces the same string quoted using double quotation marks, with escaped special characters if necessary.
  • e, E, f, g, G: expects a number and produces the floating point representation of that number, using scientific or decimal representation.
  • x, X: expects an integer number and produces the hexadecimal representation of that number, using lower case or upper case hexadecimal characters.
  • o: expects an integer number and produces the octal representation of that number.
  • d, i, u: expects an integer number and produces the decimal representation of that number.
  • c: expects an integer number and produces a character with the corresponding character code.
  • The following format characters are supported: Returns a formatted version of the input arguments using a printf-style format string s. While most library functions are provided as part of a library like table, a few global functions are exposed without extra namespacing.įunction string.format(s: string, args. All of these are accessible by default by any script, assuming the host environment exposes them (which is usually a safe assumption outside of extremely constrained environments). This page documents the available builtin libraries and functions. For example, Roblox provides a rich API to interact with the 3D environment and limited APIs to interact with external services.

    roblox lua libraries

    Scripts to interact with the host environment - it’s expected that embedding applications provide extra functionality on top of this and limit or sandbox the system accessĪppropriately, if necessary. Note that the library is relatively minimal and doesn’t expose ways for Luau comes equipped with a standard library of functions designed to manipulate the built-in data types.














    Roblox lua libraries