how convert Gui text &other Gui to UI ?!

Hello/how convert Gui text &other Gui to UI ?!?
i want convert this code of gui to ui!///////…1,9itis not important i want 3!
i want one int! of ui text !?/

public int txt_max;
VS(){
txt_max = (int)GUI.HorizontalSlider (new Rect (945, 75, 100, 30), txt_max,1,9);
}

(excuseme my english language is not very good!)
thanks for helping…
!HELP!

You can learn about the UI system on the Unity learn site and via the documention. Specifically the UI slider component. However, the system has several interconnected components, so you should start from the beginning to understand how it works.