Advertisement
Vortex23

Test

Jun 5th, 2025
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.57 KB | None | 0 0
  1. var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
  2. if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
  3. {
  4.   let window = _____WB$wombat$assign$function_____("window");
  5.   let self = _____WB$wombat$assign$function_____("self");
  6.   let document = _____WB$wombat$assign$function_____("document");
  7.   let location = _____WB$wombat$assign$function_____("location");
  8.   let top = _____WB$wombat$assign$function_____("top");
  9.   let parent = _____WB$wombat$assign$function_____("parent");
  10.   let frames = _____WB$wombat$assign$function_____("frames");
  11.   let opener = _____WB$wombat$assign$function_____("opener");
  12.  
  13. function createBaseNotifications()
  14.     if game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("NotificationHolder") then
  15.         return game:GetService("Players").LocalPlayer.PlayerGui.NotificationHolder
  16.     end
  17.    
  18.     local ScreenGui = Instance.new("ScreenGui")
  19.     ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  20.    
  21.     local ToggleNotif = Instance.new("Frame")
  22.     ToggleNotif.Name = "ToggleNotif"
  23.     ToggleNotif.ZIndex = 5
  24.     ToggleNotif.AnchorPoint = Vector2.new(1, 1)
  25.     ToggleNotif.Visible = false
  26.     ToggleNotif.Size = UDim2.new(0, 291, 0, 56)
  27.     ToggleNotif.Position = UDim2.new(1, 0, 1, 0)
  28.     ToggleNotif.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
  29.     ToggleNotif.Parent = ScreenGui
  30.    
  31.     local UiCorner = Instance.new("UICorner")
  32.     UiCorner.Name = "UiCorner"
  33.     UiCorner.Parent = ToggleNotif
  34.    
  35.     local Dropshadow = Instance.new("UIStroke")
  36.     Dropshadow.Name = "Dropshadow"
  37.     Dropshadow.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  38.     Dropshadow.Transparency = 0.8
  39.     Dropshadow.Thickness = 2
  40.     Dropshadow.Color = Color3.fromRGB(20, 20, 20)
  41.     Dropshadow.Parent = ToggleNotif
  42.    
  43.     local SepVertical = Instance.new("Frame")
  44.     SepVertical.Name = "SepVertical"
  45.     SepVertical.Size = UDim2.new(0, 2, 0, 56)
  46.     SepVertical.BackgroundTransparency = 0.5
  47.     SepVertical.Position = UDim2.new(0.7423077, 0, 0, 0)
  48.     SepVertical.BorderSizePixel = 0
  49.     SepVertical.BackgroundColor3 = Color3.fromRGB(68, 68, 68)
  50.     SepVertical.Parent = ToggleNotif
  51.    
  52.     local SepHorizontal = Instance.new("Frame")
  53.     SepHorizontal.Name = "SepHorizontal"
  54.     SepHorizontal.Size = UDim2.new(0, 72, 0, 2)
  55.     SepHorizontal.BackgroundTransparency = 0.5
  56.     SepHorizontal.Position = UDim2.new(0.75, 0, 0.4464286, 2)
  57.     SepHorizontal.BorderSizePixel = 0
  58.     SepHorizontal.BackgroundColor3 = Color3.fromRGB(68, 68, 68)
  59.     SepHorizontal.Parent = ToggleNotif
  60.    
  61.     local Title = Instance.new("TextLabel")
  62.     Title.Name = "Title"
  63.     Title.Size = UDim2.new(0, 216, 0, 19)
  64.     Title.BackgroundTransparency = 1
  65.     Title.BorderSizePixel = 0
  66.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  67.     Title.FontSize = Enum.FontSize.Size14
  68.     Title.TextSize = 14
  69.     Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  70.     Title.Font = Enum.Font.SourceSans
  71.     Title.Parent = ToggleNotif
  72.    
  73.     local Paragraph = Instance.new("TextLabel")
  74.     Paragraph.Name = "Paragraph"
  75.     Paragraph.Size = UDim2.new(0, 218, 0, 37)
  76.     Paragraph.BackgroundTransparency = 1
  77.     Paragraph.Position = UDim2.new(0, 0, 0.3392857, 0)
  78.     Paragraph.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  79.     Paragraph.FontSize = Enum.FontSize.Size14
  80.     Paragraph.TextSize = 14
  81.     Paragraph.TextColor3 = Color3.fromRGB(255, 255, 255)
  82.     Paragraph.Text = ""
  83.     Paragraph.TextYAlignment = Enum.TextYAlignment.Top
  84.     Paragraph.TextWrapped = true
  85.     Paragraph.Font = Enum.Font.SourceSans
  86.     Paragraph.TextWrap = true
  87.     Paragraph.TextXAlignment = Enum.TextXAlignment.Left
  88.     Paragraph.Parent = ToggleNotif
  89.    
  90.     local UIPadding = Instance.new("UIPadding")
  91.     UIPadding.PaddingLeft = UDim.new(0, 10)
  92.     UIPadding.PaddingRight = UDim.new(0, 5)
  93.     UIPadding.Parent = Paragraph
  94.    
  95.     local True = Instance.new("TextButton")
  96.     True.Name = "True"
  97.     True.Size = UDim2.new(0, 72, 0, 27)
  98.     True.BackgroundTransparency = 1
  99.     True.Position = UDim2.new(0.75, 0, 0, 0)
  100.     True.BorderSizePixel = 0
  101.     True.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  102.     True.FontSize = Enum.FontSize.Size14
  103.     True.TextSize = 14
  104.     True.TextColor3 = Color3.fromRGB(255, 255, 255)
  105.     True.Text = "Yes"
  106.     True.Font = Enum.Font.SourceSans
  107.     True.Parent = ToggleNotif
  108.    
  109.     local False = Instance.new("TextButton")
  110.     False.Name = "False"
  111.     False.Size = UDim2.new(0, 72, 0, 27)
  112.     False.BackgroundTransparency = 1
  113.     False.Position = UDim2.new(0.75, 0, 0.5178571, 0)
  114.     False.BorderSizePixel = 0
  115.     False.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116.     False.FontSize = Enum.FontSize.Size14
  117.     False.TextSize = 14
  118.     False.TextColor3 = Color3.fromRGB(255, 255, 255)
  119.     False.Text = "No"
  120.     False.Font = Enum.Font.SourceSans
  121.     False.Parent = ToggleNotif
  122.    
  123.     local LocalScript = Instance.new("LocalScript")
  124.     LocalScript.Parent = ScreenGui
  125.    
  126.     local DefaultNotif = Instance.new("Frame")
  127.     DefaultNotif.Name = "DefaultNotif"
  128.     DefaultNotif.ZIndex = 5
  129.     DefaultNotif.AnchorPoint = Vector2.new(1, 1)
  130.     DefaultNotif.Visible = false
  131.     DefaultNotif.Size = UDim2.new(0, 291, 0, 56)
  132.     DefaultNotif.Position = UDim2.new(1, 0, 0.9999999, 0)
  133.     DefaultNotif.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
  134.     DefaultNotif.Parent = ScreenGui
  135.    
  136.     local UiCorner1 = Instance.new("UICorner")
  137.     UiCorner1.Name = "UiCorner"
  138.     UiCorner1.Parent = DefaultNotif
  139.    
  140.     local Dropshadow1 = Instance.new("UIStroke")
  141.     Dropshadow1.Name = "Dropshadow"
  142.     Dropshadow1.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  143.     Dropshadow1.Transparency = 0.8
  144.     Dropshadow1.Thickness = 2
  145.     Dropshadow1.Color = Color3.fromRGB(20, 20, 20)
  146.     Dropshadow1.Parent = DefaultNotif
  147.    
  148.     local Title1 = Instance.new("TextLabel")
  149.     Title1.Name = "Title"
  150.     Title1.Size = UDim2.new(0, 291, 0, 19)
  151.     Title1.BackgroundTransparency = 1
  152.     Title1.BorderSizePixel = 0
  153.     Title1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  154.     Title1.FontSize = Enum.FontSize.Size14
  155.     Title1.TextSize = 14
  156.     Title1.TextColor3 = Color3.fromRGB(255, 255, 255)
  157.     Title1.Font = Enum.Font.SourceSans
  158.     Title1.Parent = DefaultNotif
  159.    
  160.     local Paragraph1 = Instance.new("TextLabel")
  161.     Paragraph1.Name = "Paragraph"
  162.     Paragraph1.Size = UDim2.new(0, 291, 0, 37)
  163.     Paragraph1.BackgroundTransparency = 1
  164.     Paragraph1.Position = UDim2.new(0, 0, 0.3392857, 0)
  165.     Paragraph1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  166.     Paragraph1.FontSize = Enum.FontSize.Size14
  167.     Paragraph1.TextSize = 14
  168.     Paragraph1.TextColor3 = Color3.fromRGB(255, 255, 255)
  169.     Paragraph1.Text = ""
  170.     Paragraph1.TextYAlignment = Enum.TextYAlignment.Top
  171.     Paragraph1.TextWrapped = true
  172.     Paragraph1.Font = Enum.Font.SourceSans
  173.     Paragraph1.TextWrap = true
  174.     Paragraph1.TextXAlignment = Enum.TextXAlignment.Left
  175.     Paragraph1.Parent = DefaultNotif
  176.    
  177.     local UIPadding1 = Instance.new("UIPadding")
  178.     UIPadding1.PaddingLeft = UDim.new(0, 10)
  179.     UIPadding1.PaddingRight = UDim.new(0, 5)
  180.     UIPadding1.Parent = Paragraph1
  181.    
  182.     if syn then
  183.         syn.protect_gui(ScreenGui)
  184.     end
  185.    
  186.     ScreenGui.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  187.     return ScreenGui
  188. end
  189.  
  190. local notificationLibrary = {}
  191.  
  192. notificationHolder = createBaseNotifications()
  193.  
  194. notifAmount = 0
  195. removedPos = nil
  196.  
  197. function notificationLibrary:CreatePromptNotif(args)
  198.     args = args or {}
  199.    
  200.    
  201.     args.TweenSpeed = args.TweenSpeed or 1
  202.     args.TweenInSpeed = args.TweenInSpeed or args.TweenSpeed
  203.     args.TweenOutSpeed = args.TweenOutSpeed or args.TweenSpeed
  204.     args.TweenVerticalSpeed = args.TweenVerticalSpeed or args.TweenSpeed
  205.    
  206.     args.Title = args.Title or "Title"
  207.     args.Text = args.Text or "Text"
  208.    
  209.     args.TrueText = args.TrueText or "Yes"
  210.     args.FalseText = args.FalseText or "No"
  211.    
  212.     args.Duration = args.Duration or 5
  213.     args.Callback = args.Callback or function() warn("No callback for notif") end
  214.    
  215.     ---- arg defining ^
  216.    
  217.  
  218.    
  219.     notifAmount = notifAmount + 1
  220.    
  221.     local track = notifAmount
  222.     local notifNum = notifAmount
  223.    
  224.     local doesExist = true
  225.     local notif = notificationHolder.ToggleNotif:Clone()
  226.     local removed = false
  227.    
  228.     notif.Parent = notificationHolder
  229.     notif.Visible = true
  230.     notif.Position = UDim2.new(1, 300, 1, -5)
  231.    
  232.     notif.Transparency = 0.05
  233.    
  234.     notif.True.Text = args.TrueText
  235.     notif.False.Text = args.FalseText
  236.    
  237.     task.spawn(function()
  238.         task.wait(args.Duration + args.TweenInSpeed)
  239.         doesExist = false
  240.     end)
  241.    
  242.     notif.True.MouseButton1Click:Connect(function()
  243.         doesExist = false
  244.         removed = true
  245.         notifAmount = notifAmount - 1
  246.         removedPos = notif.Position.Y.Offset   
  247.  
  248.         pcall(args.Callback, true)
  249.     end)
  250.    
  251.    
  252.     notif.False.MouseButton1Click:Connect(function()
  253.         doesExist = false
  254.         removed = true
  255.         notifAmount = notifAmount - 1
  256.         removedPos = notif.Position.Y.Offset   
  257.        
  258.         pcall(args.Callback, false)
  259.     end)
  260.    
  261.     notif.Paragraph.Text = args.Text
  262.     notif.Title.Text = args.Title
  263.  
  264.     notif:TweenPosition(UDim2.new(1, -5, 1, -5), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, args.TweenInSpeed)
  265.    
  266.     task.spawn(function()
  267.         local originalPos = notif.Position
  268.         while doesExist and task.wait() do 
  269.             local pos = notif.Position
  270.            
  271.             if notifAmount > track then
  272.                 notif:TweenPosition(UDim2.new(1, -5, 1, originalPos.Y.Offset - (65 * (notifAmount - notifNum))), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, args.TweenVerticalSpeed, true)
  273.                 track = track + 1
  274.             end
  275.            
  276.             if notifAmount < track then
  277.                 if removedPos > pos.Y.Offset then
  278.                     notif:TweenPosition(UDim2.new(1, -5, 1, originalPos.Y.Offset - (65 * (notifAmount - notifNum))), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, args.TweenVerticalSpeed, true)
  279.                 else
  280.                     notifNum = notifNum - 1
  281.                 end
  282.                 track = track - 1
  283.             end
  284.         end
  285.        
  286.         local pos = notif.Position
  287.        
  288.         if removed == false then
  289.             notifAmount = notifAmount - 1
  290.             removedPos = notif.Position.Y.Offset
  291.         end
  292.        
  293.         notif:TweenPosition(UDim2.new(1, 300, 1, pos.Y.Offset), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, args.TweenOutSpeed, true)
  294.         task.wait(args.TweenOutSpeed)
  295.         notif:Destroy()
  296.     end)
  297. end
  298.  
  299. function notificationLibrary:CreateDefaultNotif(args)
  300.     args = args or {}
  301.    
  302.    
  303.     args.TweenSpeed = args.TweenSpeed or 1
  304.     args.TweenInSpeed = args.TweenInSpeed or args.TweenSpeed
  305.     args.TweenOutSpeed = args.TweenOutSpeed or args.TweenSpeed
  306.     args.TweenVerticalSpeed = args.TweenVerticalSpeed or args.TweenSpeed
  307.    
  308.     args.Title = args.Title or "Title"
  309.     args.Text = args.Text or "Text"
  310.    
  311.     args.Duration = args.Duration or 5
  312.    
  313.     ---- arg defining ^
  314.    
  315.    
  316.    
  317.     notifAmount = notifAmount + 1
  318.    
  319.     local track = notifAmount
  320.     local notifNum = notifAmount
  321.    
  322.     local removed = false
  323.     local doesExist = true
  324.     local notif = notificationHolder.DefaultNotif:Clone()
  325.  
  326.     notif.Parent = notificationHolder
  327.     notif.Visible = true
  328.     notif.Position = UDim2.new(1, 300, 1, -5)
  329.    
  330.     notif.Transparency = 0.05
  331.    
  332.     notif.InputBegan:Connect(function(InputObject)
  333.         if InputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  334.             task.spawn(function()
  335.                 local tweenInfo = TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0, false,0)
  336.                 game:GetService("TweenService"):Create(notif, tweenInfo, {Transparency = 0.8}):Play()
  337.             end)
  338.             doesExist = false
  339.             removed = true
  340.             notifAmount = notifAmount - 1
  341.             removedPos = notif.Position.Y.Offset
  342.         end
  343.     end)
  344.    
  345.     task.spawn(function()
  346.         task.wait(args.Duration + args.TweenInSpeed)
  347.         doesExist = false
  348.     end)
  349.    
  350.     notif.Paragraph.Text = args.Text
  351.     notif.Title.Text = args.Title
  352.  
  353.     notif:TweenPosition(UDim2.new(1, -5, 1, -5), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, args.TweenInSpeed)
  354.    
  355.     task.spawn(function()
  356.         local originalPos = notif.Position
  357.         while doesExist and task.wait() do 
  358.             local pos = notif.Position
  359.            
  360.             if notifAmount > track then
  361.                 notif:TweenPosition(UDim2.new(1, -5, 1, originalPos.Y.Offset - (65 * (notifAmount - notifNum))), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, args.TweenVerticalSpeed, true)
  362.                 track = track + 1
  363.             end
  364.            
  365.             if notifAmount < track then
  366.                 if removedPos > pos.Y.Offset then
  367.                     notif:TweenPosition(UDim2.new(1, -5, 1, originalPos.Y.Offset - (65 * (notifAmount - notifNum))), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, args.TweenVerticalSpeed, true)
  368.                 else
  369.                     notifNum = notifNum - 1
  370.                 end
  371.                 track = track - 1
  372.             end
  373.         end
  374.        
  375.         local pos = notif.Position
  376.        
  377.         if removed == false then
  378.             notifAmount = notifAmount - 1
  379.             removedPos = notif.Position.Y.Offset
  380.         end
  381.        
  382.        
  383.         notif:TweenPosition(UDim2.new(1, 300, 1, pos.Y.Offset), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, args.TweenOutSpeed, true)
  384.         task.wait(args.TweenOutSpeed)
  385.         notif:Destroy()
  386.     end)
  387. end
  388.  
  389.  
  390. return notificationLibrary
  391.  
  392.  
  393. }
  394. /*
  395.      FILE ARCHIVED ON 17:46:18 Apr 01, 2023 AND RETRIEVED FROM THE
  396.      INTERNET ARCHIVE ON 18:08:27 Jun 05, 2025.
  397.      JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
  398.  
  399.      ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
  400.      SECTION 108(a)(3)).
  401. */
  402. /*
  403. playback timings (ms):
  404.   captures_list: 13.239
  405.   exclusion.robots: 0.019
  406.   exclusion.robots.policy: 0.01
  407.   esindex: 0.015
  408.   cdx.remote: 55.392
  409.   LoadShardBlock: 412.331 (3)
  410.   PetaboxLoader3.datanode: 308.636 (5)
  411.   PetaboxLoader3.resolve: 541.028 (3)
  412.   load_resource: 460.175
  413.   loaddict: 32.947
  414. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement