I have a script in ServerScriptService and I need it to fire a remote event that a local script will get so that it can know to change a GUI element.
You can use :FireClient() to fire an event to a specific player
game:GetService("ServerScriptService").RemoteEvent:FireClient(player) --Wherever the remote event is
The first parameter MUST be a player object in order for it to work
To appropriately engage this, you must establish a medium in which both ends of the network can access. The commonplace for RemoteEvent's is ReplicatedStorage
when hoping to communicate between the Client & Server.
ServerScriptService
, this will need to be moved as this container is inaccessible to the Client.As usual, we use the :FireClient() method to send our data, subsequently using the .OnClientResponse signal to receive.