The code:
function addcash(cash)
game.Players.PlayerAdded:Connect(function(plr)
plr.leaderstats.Cash += cash
end)
end
script.Parent.ClickDetector.MouseClick:Connect(addcash(10))
Error: Attempt to connect failed: Passed value is not a function
