> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/objects/progressbar.md).

# ProgressBar

For examples on how to use, refer to [UIService](/scripting/bedwars-scripting/services/uiservice.md).

### Functions

#### setColor(color: [Color3](https://create.roblox.com/docs/reference/engine/datatypes/Color3))

Sets the fill color of the progress bar.

#### setMaxProgress(max: number)

Sets the max progress for the progress bar.

#### setText(text: string)

Sets a text label on the progress bar.

#### get(): number

Returns the current progress of the progress bar. For example, a progress bar that has 1 unit of progress with a maximum of 5 units would return `1`.

#### add(amount: number)

Adds the given amount to the current progress.

#### sub(amount: number)

Subtracts the given amount from the current progress.

#### set(amount: number)

Sets the progress to the given amount.

#### addPlayer(player: [Player](/scripting/bedwars-scripting/objects/player.md))

Adds a player to the list of players who can view this progress bar.

#### removePlayer(player: [Player](/scripting/bedwars-scripting/objects/player.md))

Removes a player from the list of players who can view this progress bar.

#### destroy()

Removes the progress bar.
