local Shop = script.Parent
local exitButton = script.Parent.exitButton
function onClicked(Shop)
Shop:remove()
end
exitButton.MouseButton1Click:connect(onClicked(Shop)
)
https://gyazo.com/70ccf10cce547c46b113d025b6d0dd07
I get the error: Attempt to connect failed: Passed value is not a function? and I am not sure why. I have provided both the code, and the workspace. May someone help me? Many thanks.

2 comments
So connect was finally removed
Yeah, I don't see it in here: http://robloxdev.com/api-reference/datatype/RBXScriptSignal