Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function callback(text)
- if text == "Yes" then
- local lp = game:GetService("Players").LocalPlayer
- local char = lp.Character
- local pos = Instance.new("CFrameValue")
- if char then
- pos.Value = char.HumanoidRootPart.CFrame
- char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,19,0)
- wait(.2)
- char.HumanoidRootPart.CFrame = pos.Value
- char.HumanoidRootPart.CFrame = workspace.Drop.Briefcase.CFrame
- end
- elseif text == "No" then
- print("...")
- end
- end
- local bindableFunction = Instance.new("BindableFunction")
- bindableFunction.OnInvoke = callback
- game.StarterGui:SetCore("SendNotification", {
- Title = "Airdrop"; -- Required. Has to be a string!
- Text = "Do you want to go pick up the airdrop?";
- Icon = "";
- Duration = 55;
- Callback = bindableFunction; -- Optional, gets invoked with the text of the button the user pressed
- Button1 = "Yes";
- Button2 = "No";
- })
Add Comment
Please, Sign In to add comment