I am trying to make a boat in my game. When I press the buttons needed to use a function, it does nothing. In the local script:
local MoveEvent = script.Parent.RemoteEvent
local uis = game:GetService("UserInputService")
uis.InputBegan:connect(function(Input)
local KeyCodeName = Input.KeyCode.Name
if KeyCodeName == "W" then
MoveEvent:FireServer("Forwards")
elseif KeyCodeName == "S" then
MoveEvent:FireServer("Backwards")
elseif KeyCodeName == "A" then
MoveEvent:FireServer("Left")
elseif KeyCodeName == "D" then
MoveEvent:FireServer("Right")
end
end)
uis.InputEnded:connect(function(Input)
local KeyCodeName = Input.KeyCode.Name
if KeyCodeName == "W" or "Up" or "S" or "Down" then
MoveEvent:FireServer("StopMove")
elseif KeyCodeName == "A" or "Left" or "D" or "Right" then
MoveEvent:FireServer("StopTurn")
end
end)
In the script:
script.Parent.RemoteEvent.OnServerEvent:connect(function()
print("hi")
end)
When I try to use it, It gives no errors

2 comments
The local script and the server script seem to have the same parent. That should never happen; that means the local script is either not in a player's Character/GUI/Backpack or the server script is not in Workspace/ServerScriptService.
You do know that you don't need RemoteEvents if you have FE off?