Advertisement
OpenBionicAdmin

ROBLOX Send Notifications with Buttons

Mar 9th, 2019
6,024
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. -- WATCH THE VIDEO > https://www.youtube.com/watch?v=EJrAvxM6awQ&lc=z231clqqmknhe5kstacdp430rezk3yaldwlzjnfndhtw03c010c
  2.  
  3. wait(1)
  4. local function callback(text)
  5.     if text == "Yes" then
  6.     print("User said yes")
  7.     elseif text == "No" then
  8.     print("User said no")
  9.     end
  10. end
  11.  
  12. local bindableFunction= Instance.new("BindableFunction")
  13.  
  14. game.StarterGui:SetCore("SendNotification", {
  15.     Title = "TITLE";
  16.     Text = "TEXT";
  17.     Icon = "RBXID OR BLANK";
  18.     Duration = "DURATION IN SECONDS";
  19.     callbakc = bindableFunction;
  20.     Button1 = "BUTTON1 TEXT";
  21.     Button2 = "BUTTON2 TEXT";
  22. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement