There is any way to replicate a function from a OnClick() event?

I set the value to 500, but doesn’t work yet :frowning: