RemoteEvent.OnServerEvent:Connect(function(player, direction)
if direction == "up" then
end
if direction == "down" then
end
end)
The “RemoteEvent” is the remote event you are trying to use. The “player” is the player that fired the remote event
You can pass information from the client to the server using parameters.