I made this really small code for part of a dialog response
function gj1(gj1)
game.Players:FindFirstChild().leaderstats.Money = 50
end
game.Workspace.Part.Dialog.DialogChoiceSelected:connect(gj1)
However when ever I execute it I get this error code Argument 1 missing or nil I have tried to find what it means but it's all too vague if someone could explain to me what it means and how to fix it that will be great!
