Skip to main content

General Functions

ClearConsole​

Syntax

ClearConsole()

CalcTextWidth​

Syntax

CalcTextWidth(text)

Parameters

  • Text <string> - Text to calculate.

Returns

A number regarding the width of the text.


MatrixToEulers​

Syntax

MatrixToEulers(CFrame)

Parameters

  • CFrame <matrix> - A matrix, table of 9 values.

Returns

{x,y,z}


Size​

Syntax

size()

Returns

  1. size().width - returns width
  2. size().height - returns height

ShowConsole​

Syntax

ShowConsole(show)

Parameters

  • Show <bool> - True or False value.

Teleport​

Syntax

Teleport(character, position)

Parameters

  • Character <pointer> - pointer to character.
  • Position <table> - A table with position to teleport to. e.g {x, y, z}

Returns

a pointer(number) to the instance.


WorldToScreen​

Syntax

WorldToScreen({ position })

Parameters

  • <table> a table of position.

Returns

  • a table filled with the screen-position of a world-position.
  1. WorldToScreen({.,.,.}).x - returns screenposition x

  2. WorldToScreen({.,.,.}).y - returns screenposition y