If i use FireServer("string") in a LocalScript, how do I detect if it said "string" or not

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.

2 Likes