In game proccess GUI clicks

Hello,
I’ve wrote a GUI that runs in the game proccess like in all the online games out there.

  • My player is moving on mouse click.
  • When i click on the GUI the player moves.

How can i check for gui clicks and know when i’ve clicked the gui or not?

Depends on the GUI element. Check the GUI basics to get started, the GUI scripting guide for a bunch of examples, and the GUI script reference for examples for each specific GUI element (buttons, toggles, scrollbars, etc.)