Ui.SetText wont update

Im on Tabula Rasa and I’m trying to get a variable to update but using ui.setText wont work when updating it in a while True: loop, Does it not update

Yes, it only updates at the start, if you want to display something live, use

game.variableName = value;
ui.track(game, "variableName");
while (true) {
    game.variableName = something;
    # and then it updates :D ... R.I.P the code button for assuming this is Python...
}