# SetFunction()

```lua
function HelloWorld 
    print("Hello World!")
end

function HelloNotWorld
    print("Hello not World")
end

local Button = Menu.AddButton("Button", HelloWorld)

Button:SetFunction(HelloNotWorld)
```
