roblox studio how to receive a remote event in javascript code example
Example: remoteevent roblox
--Server => Client
remoteEvent:FireAllClients() --Server Script
remoteEvent:FireClient(player) --Server Script
remoteEvent.OnClientEvent:Connect() --Local Script
--Client => Server
remoteEvent:FireServer() --Local Script
remoteEvent.OnServerEvent:Connect() -- Server Script