function lol(text)
print(text)
end
game.StarterGui:SetCore("SendNotification",{
Title = "hi";
Time = 5;
Text = "hlol";
Button1 = "yes";
Button2 = "no";
callback = lol();
})
I tried connecting a callback to a function, but it prints nil everytime with no errors. How do I check which option a player clicked?

1 comment
When setting a callback, just remember that you need to do = lol, not = lol(). In the first, you are setting the callback to the function. In the second, you are setting the callback to the return value of the function, which, in this case, is nothing.