> For the complete documentation index, see [llms.txt](https://hawklib.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hawklib.gitbook.io/docs/elements/window/tabs/sliders.md).

# Sliders

## Slider Creation

```luau
local MySlider = Tab2:Slider("Speed", "Adjust player speed", 16, 100, function(value)
    print("Speed value:", value)
    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
end)
```

### Slider Values

Get Value

```luau
MySlider:GetValue()
```

Set Value

```luau
MySlider:SetValue(50)
```

### Updating Slider Colors

```luau
MySlider:SetColor({
    SliderPrimer = {
        FirstColor = Color3.fromRGB(255, 100, 100),
        SecondColor = Color3.fromRGB(100, 100, 255)
    },
    SliderSeconder = {
        FirstColor = Color3.fromRGB(50, 50, 50),
        SecondColor = Color3.fromRGB(30, 30, 30)
    }
})
```
