How do you use RemoteFunctions properly in a GUI?
I'm trying not to insert pieces of code into SH, one simply because I'm trying to make a game and I don't need large sections of the code available on a free website and another that the involved code is spread throughout several different places and would be quite difficult to coherently display here. ;D
Essentially, I'm building a fairly standard game with changing modes based on a timer. I've done this quite a few times but this time I decided to be a bit cooler and build the whole thing with modular scripting and FilteringEnabled. I have run into some slight issues. :/
I have a hierarchy like this:
I've been able to make the switch to FilteringEnabled tools fairly seamlessly but I've encountered problems with the GUIs. A libary function (in loose pseudo code) does the following
5 | copy gui into startergui |
I'm currently trying to use two GUIs, one displays a message and the other has a changeable picture. I've implemented RemoteFunctions to allow the server to control the guis through LocalScripts, but somehow when the GUI is copied this way there's been some minor problems.
- Destroying the GUI from the server required extra syncing (ie, server thinks a gui is deleted from a player when its not.)
- RemoteFunctions sometimes will simply not respond to input from the server even when their setup perfectly. I have one LocalScript in two guis with the exact same contents and object structure inserted into the player in identical ways and then interfaced by the server identically. Ridiculously, one responds to the input with a printout and the other does not (go figure).
What I need:
1. A fix for my current setup (not expecting this since my description is rather vague yet verbose)
2. What general guideline for manipulating 2D GUIs with RemoteFunctions and FilteringEnabled should I use?
Sorry for an extremely TL;DR explanation for a difficult problem, it just has me stumped.