Basic question but I’m still learning and its tough to find answers.
Reviewing the documentation for Remote Events in the Roblox API, it shows a new RemoteEvent object created in the ServerScript in every example. When I create Client-to-Server or Server-to-Client ServerScript, do I need to create a new RemoteEvent per player, per event type?
I’m specifically asking from the standpoint of firing a Client-side LocalScript from a ServerScript to change their GUI. If all Clients have a LocalScript listening for the Event, I’m assuming they would either have to have their own RemoteEvent or we are passing the player parameter in the FireClient(player) function?
Here is the example below from the API showing that it creates a new RemoteEvent. Would this be necessary if I have already created the RemoteEvent in ReplicatedStorage?
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local welcomePlayerEvent = Instance.new("RemoteEvent")
welcomePlayerEvent.Parent = ReplicatedStorage
welcomePlayerEvent.Name = "WelcomePlayerEvent"
local function onPlayerAdded(player)