Advertisement
shgsiughiiruhdu12354

(Test) Notification test

Nov 2nd, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local function callback (Text)
  2. if Text == "Ok!" then
  3. print("They sayed Ok!")
  4. elseif Text == "NO" then
  5. print("They sayed NO")
  6. end
  7. end
  8.  
  9. local NotificationBindable = Instance.new("BindableFunction")
  10. NotificationBindable.OnInvoke = callback
  11.  
  12. game.StarterGui:SetCore("SendNotification", {
  13. Title = "Grim"
  14. Text = "Have fun ok?";
  15. Icon = "";
  16. Duration = 5;
  17. Button1 = "Ok!"
  18. Button2 = "NO"
  19. Callback = NotificationBindable;
  20. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement