Remote Event or Function help

Hi, What I am trying to do is kill the lights by a press of a button, however, I don’t know which Remote Event or function to use

Do you need something back from the server? If so use a remote function. Do you not? If you don’t then use a remote event.

1 Like

What I am trying to do is turn off the lights in the map…?

So you don’t need any result. So just use a remote event.

I would use a remote event in your case.

Remote events are for sending a message to the server, without expecting data in return, or a confirmation of success.

Remote functions are used when you want a response back from the server after it completes the task.

You fire a remote event to the server with :FireServer().

You can receive the event’s transmission on the server by listening for .OnServerEvent.

How should i fire it? OnServer?

You would use the OnServerEvent event of the RemoteEvent to listen for :FireServer calls.

1 Like

To fire:

RemoteEvent:FireServer()

To receive:

RemoteEvent.OnServerEvent:Connect(function()

1 Like