Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell infortality
- -- Revamp by ImFrostic, Version 2.81
- -- Objects
- local Notify = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Sound = Instance.new("Sound")
- local Top = Instance.new("TextLabel")
- local TextButton = Instance.new("TextButton")
- local Question = Instance.new("TextLabel")
- local AnswerGreen = Instance.new("Frame")
- local Ans = Instance.new("TextButton")
- local AnswerGrey = Instance.new("Frame")
- local Ans_2 = Instance.new("TextButton")
- local AnswerRed = Instance.new("Frame")
- local Ans_3 = Instance.new("TextButton")
- -- Properties
- Notify.Name = "Notify"
- Notify.Parent = game.StarterGui
- Notify.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = Notify
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.5
- Frame.Position = UDim2.new(-0.200000003, 0, 0.5, 0)
- Frame.Size = UDim2.new(0.400000006, 0, 0.400000006, 0)
- Sound.Parent = Frame
- Sound.SoundId = "rbxassetid://1029495337"
- Sound.Volume = 4
- Sound.Pitch = 2
- Top.Name = "Top"
- Top.Parent = Frame
- Top.BackgroundColor3 = Color3.new(0, 0, 0)
- Top.BackgroundTransparency = 0.5
- Top.Size = UDim2.new(1, 0, 0.0799999982, 0)
- Top.Font = Enum.Font.SourceSans
- Top.Text = "Notification from Memo1332"
- Top.TextColor3 = Color3.new(1, 1, 1)
- Top.TextScaled = true
- Top.TextSize = 14
- Top.TextWrapped = true
- Top.TextXAlignment = Enum.TextXAlignment.Left
- TextButton.Parent = Top
- TextButton.AnchorPoint = Vector2.new(1, 0)
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BackgroundTransparency = 1
- TextButton.Position = UDim2.new(1, 0, 0, 0)
- TextButton.Size = UDim2.new(1, 0, 1, 0)
- TextButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "X"
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- Question.Name = "Question"
- Question.Parent = Frame
- Question.BackgroundColor3 = Color3.new(1, 1, 1)
- Question.BackgroundTransparency = 0.80000001192093
- Question.Position = UDim2.new(0, 0, 0.0799999982, 0)
- Question.Size = UDim2.new(1, 0, 0.319999993, 0)
- Question.Font = Enum.Font.SourceSans
- Question.Text = "Yoooooo are u there?"
- Question.TextColor3 = Color3.new(1, 1, 1)
- Question.TextScaled = true
- Question.TextSize = 14
- Question.TextWrapped = true
- Question.TextXAlignment = Enum.TextXAlignment.Left
- Question.TextYAlignment = Enum.TextYAlignment.Top
- AnswerGreen.Name = "AnswerGreen"
- AnswerGreen.Parent = Frame
- AnswerGreen.BackgroundColor3 = Color3.new(0.00392157, 0.364706, 0)
- AnswerGreen.BackgroundTransparency = 0.5
- AnswerGreen.BorderSizePixel = 0
- AnswerGreen.Position = UDim2.new(0.100000001, 0, 0.600000024, 0)
- AnswerGreen.Size = UDim2.new(0.25, 0, 0.224999994, 0)
- Ans.Name = "Ans"
- Ans.Parent = AnswerGreen
- Ans.BackgroundColor3 = Color3.new(0.0156863, 1, 0)
- Ans.BackgroundTransparency = 0.80000001192093
- Ans.Size = UDim2.new(1, 0, 1, 0)
- Ans.Font = Enum.Font.SourceSans
- Ans.Text = "Yes"
- Ans.TextColor3 = Color3.new(1, 1, 1)
- Ans.TextScaled = true
- Ans.TextSize = 14
- Ans.TextWrapped = true
- AnswerGrey.Name = "AnswerGrey"
- AnswerGrey.Parent = Frame
- AnswerGrey.AnchorPoint = Vector2.new(0.5, 0)
- AnswerGrey.BackgroundColor3 = Color3.new(0.364706, 0.364706, 0.364706)
- AnswerGrey.BackgroundTransparency = 0.5
- AnswerGrey.BorderSizePixel = 0
- AnswerGrey.Position = UDim2.new(0.5, 0, 0.600000024, 0)
- AnswerGrey.Size = UDim2.new(0.25, 0, 0.224999994, 0)
- Ans_2.Name = "Ans"
- Ans_2.Parent = AnswerGrey
- Ans_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Ans_2.BackgroundTransparency = 0.80000001192093
- Ans_2.Size = UDim2.new(1, 0, 1, 0)
- Ans_2.Font = Enum.Font.SourceSans
- Ans_2.Text = "Close"
- Ans_2.TextColor3 = Color3.new(1, 1, 1)
- Ans_2.TextScaled = true
- Ans_2.TextSize = 14
- Ans_2.TextWrapped = true
- AnswerRed.Name = "AnswerRed"
- AnswerRed.Parent = Frame
- AnswerRed.AnchorPoint = Vector2.new(1, 0)
- AnswerRed.BackgroundColor3 = Color3.new(0.364706, 0, 0)
- AnswerRed.BackgroundTransparency = 0.5
- AnswerRed.BorderSizePixel = 0
- AnswerRed.Position = UDim2.new(0.899999976, 0, 0.600000024, 0)
- AnswerRed.Size = UDim2.new(0.25, 0, 0.224999994, 0)
- Ans_3.Name = "Ans"
- Ans_3.Parent = AnswerRed
- Ans_3.BackgroundColor3 = Color3.new(1, 0, 0)
- Ans_3.BackgroundTransparency = 0.80000001192093
- Ans_3.Size = UDim2.new(1, 0, 1, 0)
- Ans_3.Font = Enum.Font.SourceSans
- Ans_3.Text = "No"
- Ans_3.TextColor3 = Color3.new(1, 1, 1)
- Ans_3.TextScaled = true
- Ans_3.TextSize = 14
- Ans_3.TextWrapped = true
- -- Scripts
- function findplayer(playername)
- for i,v in pairs(game.Players:GetChildren()) do
- local nam = v.Name
- if string.sub(nam,1,#playername):lower() == playername:lower() then
- return v
- end
- end
- return nil
- end
- owner.Chatted:Connect(function(msg)
- if string.sub(msg,1,7):lower() == ";notif/" then
- local split = string.split(string.sub(msg,8),"/")
- local clon = Notify:Clone()
- local plr = findplayer(split[1])
- local tim = os.time()
- clon.Parent = plr.PlayerGui
- clon.Frame.Question.Text = split[2]
- clon.Frame.AnswerGreen.Ans.Text = split[3]
- clon.Frame.AnswerRed.Ans.Text = split[4]
- clon.Frame.Top.Text = "Notification from "..tostring(owner)
- clon.Frame:TweenPosition(UDim2.new(0.5,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,0.5,true)
- coroutine.resume(coroutine.create(function()
- clon.Frame.Sound:Play()
- wait(.5)
- clon.Frame.Sound.Pitch = 3
- clon.Frame.Sound:Play()
- end))
- local function playSound()
- coroutine.resume(coroutine.create(function()
- local clon2 = Sound:Clone()
- local gui = Instance.new("ScreenGui")
- gui.Parent = owner.PlayerGui
- clon2.Parent = gui
- clon2:Play()
- wait(.5)
- clon2.Pitch = 3
- clon2:Play()
- wait(.5)
- gui:Destroy()
- end))
- end
- clon.Frame.AnswerGreen.Ans.MouseButton1Down:Connect(function()
- clon:Destroy()
- warn("Question responce from: "..plr.Name)
- print(" - Response: "..split[3].."\n - Time taken: "..tostring(os.time()-tim))
- playSound()
- end)
- clon.Frame.AnswerRed.Ans.MouseButton1Down:Connect(function()
- clon:Destroy()
- warn("Question responce from: "..plr.Name)
- print(" - Response: "..split[4].."\n - Time taken: "..tostring(os.time()-tim))
- playSound()
- end)
- clon.Frame.AnswerGrey.Ans.MouseButton1Down:Connect(function()
- clon:Destroy()
- warn("Question responce from: "..plr.Name)
- print(" - Response: No responce".."\n - Time taken: "..tostring(os.time()-tim))
- playSound()
- end)
- clon.Frame.Top.TextButton.MouseButton1Down:Connect(function()
- clon:Destroy()
- warn("Question responce from: "..plr.Name)
- print(" - Response: No responce".."\n - Time taken: "..tostring(os.time()-tim))
- playSound()
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement