Advertisement
CyBlox

Untitled

Apr 11th, 2020
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local function callback(Text)
  2. if Text == "Button1 text" then
  3. print ("Answer")
  4. elseif Text == ("Button2 text") then
  5. print ("Answer2")
  6. end
  7. end
  8.  
  9. local NotificationBindable = Instance.new("BindableFunction")
  10. NotificationBindable.OnInvoke = callback
  11. --
  12. game.StarterGui:SetCore("SendNotification", {
  13. Title = "Cyblox";
  14. Text = "Running Version V1.0.1";
  15. Icon = "";
  16. Duration = 5;
  17. Button1 = "Okay";
  18. Callback = NotificationBindable;
  19. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement