In a local script(game.StarterPlayer.StarterCharacterScripts.LocalScript), I put this:
local UserInputService = game:GetService("UserInputService")
Print("Local Script")
function Began(Input)
Print(Input)
end
function Ended(Output)
Print(Output)
end
UserInputService.InputBegan:Connect(Began)
UserInputService.InputEnded:Connect(Ended)
For the first Player this is the output:
Local Script
Input
Output
For the second Player this is the output:
Local Script
Btw, I have tested this with other people as well as myself

3 comments
That is not the case, I just forgot to add that to the question, whoops
Thanks for trying to help me though
I only have one final answer, change it to UserInputService.InputBegan:Connect(function(input) because it might get confused what your input is. Try it like this.