Gizmo

Debug shapes the server draws in players' worlds: lines, spheres, boxes and text labels, for a time or until cleared. Each call returns the gizmo's id, and drawing it again replaces it. Without `players` in the options, all players draw it. Gizmos end when their resource stops. To draw on one machine, use the client's Gizmos.

gizmo.line()

Gizmo.line(from, to, options)

Draws a line between two points.

gizmo.sphere()

Gizmo.sphere(center, radius, options)

Draws a sphere at a point with a radius.

gizmo.box()

Gizmo.box(center, size, options)

Draws a box at a point with a size. The options can also include `rotation`.

gizmo.text()

Gizmo.text(position, text, options)

Draws a text label at a point.

gizmo.clear()

Gizmo.clear(gizmo, players)

Removes one gizmo or all of them, for everyone or for chosen players.