Nova355killer

yes no script

Feb 9th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. local function callback(text)
  2. if text == "Yes" then
  3. local lp = game:GetService("Players").LocalPlayer
  4. local char = lp.Character
  5. local pos = Instance.new("CFrameValue")
  6. if char then
  7. pos.Value = char.HumanoidRootPart.CFrame
  8. char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,19,0)
  9. wait(.2)
  10. char.HumanoidRootPart.CFrame = pos.Value
  11. char.HumanoidRootPart.CFrame = workspace.Drop.Briefcase.CFrame
  12. end
  13. elseif text == "No" then
  14. print("...")
  15. end
  16. end
  17.  
  18. local bindableFunction = Instance.new("BindableFunction")
  19. bindableFunction.OnInvoke = callback
  20.  
  21. game.StarterGui:SetCore("SendNotification", {
  22. Title = "Airdrop"; -- Required. Has to be a string!
  23. Text = "Do you want to go pick up the airdrop?";
  24. Icon = "";
  25. Duration = 55;
  26. Callback = bindableFunction; -- Optional, gets invoked with the text of the button the user pressed
  27. Button1 = "Yes";
  28. Button2 = "No";
  29. })
Add Comment
Please, Sign In to add comment