Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function callback (Text)
- if Text == "Ok!" then
- print("They sayed Ok!")
- elseif Text == "NO" then
- print("They sayed NO")
- end
- end
- local NotificationBindable = Instance.new("BindableFunction")
- NotificationBindable.OnInvoke = callback
- game.StarterGui:SetCore("SendNotification", {
- Title = "Grim"
- Text = "Have fun ok?";
- Icon = "";
- Duration = 5;
- Button1 = "Ok!"
- Button2 = "NO"
- Callback = NotificationBindable;
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement