Кнопка imgui, цикл while

Lertex

Участник
Автор темы
30
0
Версия MoonLoader
.027.0-preview
Как в кнопку imgui добавить цикл while.
Пример::
if imgui.Button(u8"Привет") then

   while hello == 1 do

       wait(0) 

       print(1)

   end

end
Постоянно крашит