How do you use remotes?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gold Card

I was wondering how to make a “remote” (if that’s what its called) In my game there is a key mechanic, and a GUI to indicate weather or not a player has a key. I wanted to use a remote event when a player picks up a key so the GUI will show; and one for when the player uses the key the GUI will hide.

:bust_in_silhouette: Reply From: estebanmolca

The first thing that comes to mind with your question are the signals:

Although your question has to do, I think, with the details of the implementation. For that I leave this tutorial (it is not video) very well explained:

(I recommend starting it from the beginning if you have time).
In this part he creates a simple GUI and he use signals to update it when the player submits an event. It is a very good example to understand how to use the signals and I think it can be applied to your game.