Skip to content

Api > ScoreBoardEntry > Constructor


ScoreBoardEntry(MLPlayer player, string name, number value)⚓︎

Creates a new scoreboard entry.

Parameters:⚓︎

Name Type Description
player MLPlayer Associated player
name string The name of the score. Like kills, health, etc.
value number The score value.

Usage⚓︎

---@type MLPlayer
local player;

---@type string
local name;

---@type number
local value;


local scoreboardentry = ScoreBoardEntry(player, name, value);