I am trying to make a grappling gun in Roblox and my RemoteEvent is not working. Here is the local script
local RS = game:GetService("ReplicatedStorage")
local held = RS:WaitForChild("held")
local Player = game.Players.LocalPlayer
local Character = Player.Character
local GrapplePart = game.Workspace:WaitForChild("GrapplePart")
local Click = false
local mouse = game.Players.LocalPlayer:GetMouse()
local UIS = game:GetService("UserInputService")
local RS = game:GetService("ReplicatedStorage")
UIS.InputBegan:Connect(function(input)
local inputType = input.UserInputType
if inputType == Enum.UserInputType.MouseButton1 then
Click = true
held:FireServer(mouse, true)
print("On")
end
end)
and this is the server script
held.OnServerEvent:connect(function(player, mouse, value)
print("It worked") --Nothing shows up in the output
end)

6 comments
The reason I said concise answer is because it said describe your problem concisely
fire the mouse position instead, tell me if there are errors.. try using mouse.Button1Down instead maybe
There were no errors before but when I did mouse.position and with Button1Down there is an error message sayingPlayers.longjohnnn.PlayerScripts.LocalScript:30: Expected ')' (to close '(' at line 10), got 'end' the error message is at the end of the script on line 17 but when I highlight the bracket at the end it is the ending one to the one at line 10 so I am confused.
But, as you can see, I put print("On") whenever the mouse was clicked and it printed that. But the server one didn't.
So, all in all from my observation, the way that I first detected that the mouse was clicked worked. But I could have also been doing it wrong.
you forgot an ) on the end on the third comment, thats what the error was for, try changing connect to Connect and define held on the server script if you didnt