Need help with my script

I’m assuming you mean communication between NUI and the backend.

In that case, this topic explains it well: