User Input Service and remote events

Hello,

I’m currently trying to make a plane and was wondering. How can I use User Input Service to fire a remote event?

Thanks,

  • Luke

(I’m not that good of a scripter)

This question is extremely vague, can you tell us more what you are trying to do.


UserInputService handles “User Inputs” (i.e. key press)

and RemoteEvents send data to the server


a random example could be:

UserInputService.InputBegan:Connect(function(input)
  if input.UserInputType == Enum.UserInputType.MouseButton1 then -- mouse button 1 clicked
     RemoteEvent:FireServer() -- ask the server for a million coins
  end
end)
4 Likes