Scripting Support for Coding from ScreenGUI to SurfaceGUI [RESOLVED]

Hi!

I’m currently done making the GUI of a system where you can add/reset the score and edit/change the text to appear inside a ScreenGUI. I’ve been thinking of ideas, but my brain isn’t braining.

I’ve came to here so I can get a general idea, and maybe a script to start off with since I haven’t scripted in around a year.

In the last post, I created a little example of what I want to happen with each button, so if any support will be appreciated!


*Not the finished version

The general idea of how you would achieve your desired outcome is:

  • Have a local script which handles all the button presses, and should detect when the user changes the text in the box.
  • For each event (button press, text change), you should use :FireServer on a remote event (providing additional information along, such as the text and the scores)
  • Then, have a server script which listens for OnServerEvent, then updates the SurfaceGUI accordingly, based on the additional information provided to it.
1 Like

This is a great explanation!
If I were to add an update button, should I re-direct everything through the button?

Yep!

1 Like

Got it all down.
Thanks for the help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.