You problem with the given code is that you have too many parameters on MouseClick. The only parameter of MouseClick is a pointer to the player who clicked. Also, the parameters of the function do not belong in the connection line, but rather in the function line.
local button1e = game.Workspace.Button1e
function buttonPressed(playerWhoClicked)
end
button1e.ClickDetector.MouseClick:connect(buttonPressed)
I'm not sure how your parameters for buttonPressed in your connection line fit into the script, so I can't really help you there unless you post more of your script.
1 comment
thank you for the help i did not know that was the only parameter mouseclick could have