Sidebar
Access and control a per-player sidebar through the player.sidebar property. Sidebars use a local Scoreboard() instance and direct packets — no other player sees them.
Metatable name: "sidebar"
player.sidebar = {...}
Section titled “player.sidebar = {...}”Creates or updates the sidebar. Auto-shows on first creation.
player.sidebar = { title = "My Server", lines = { "Welcome!", "", "Online: 42" }}Partial updates merge with existing state:
player.sidebar = { title = "New Title" }player.sidebar = { lines = { "Line 1", "Line 2" } }player.sidebar = { visible = false }player.sidebar = nil
Section titled “player.sidebar = nil”Destroys the sidebar.
player.sidebar = nilSidebar Object
Section titled “Sidebar Object”Reading player.sidebar returns a sidebar object:
sb.title
Section titled “sb.title”type: string
Current title. Assign to update (sends packet if visible).
sb.lines
Section titled “sb.lines”type: table
Lines array (strings). Assign to replace all lines.
sb.visible
Section titled “sb.visible”type: boolean
Whether the sidebar is shown. Read-only.
sb.lineCount
Section titled “sb.lineCount”type: number
Number of lines. Read-only.
sb:setLine(n, text)
Section titled “sb:setLine(n, text)”Sets or updates a specific line (1‑indexed).
n(number) — Line indextext(string) — Line text
sb:show()
Section titled “sb:show()”Shows the sidebar.
sb:hide()
Section titled “sb:hide()”Hides the sidebar.
sb:destroy()
Section titled “sb:destroy()”Destroys the sidebar permanently.
local sb = player.sidebarsb.title = "Updated Title"sb.lines = { "Line A", "Line B", "Line C" }sb:setLine(2, "Modified Line B")sb:hide()-- latersb:show()sb:destroy()Lifetime
Section titled “Lifetime”Sidebars are auto-destroyed on player disconnect and /ignis reload.