Domadicoof-28363

Untitled

Jan 5th, 2025
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. local AlertFrame = Instance.new("ScreenGui");
  2. AlertFrame.Name = "AlertFrame";
  3. AlertFrame.Parent = game.CoreGui;
  4. AlertFrame.ZIndexBehavior = Enum.ZIndexBehavior.Global;
  5. local Alert = {};
  6. _G.Primary = Color3.fromRGB(48, 51, 71);
  7. _G.Dark = Color3.fromRGB(22, 22, 26);
  8. function Alert:create(desc)
  9. if game.CoreGui:FindFirstChild("AlertFrame") then
  10. local alertFrame = game.CoreGui.AlertFrame;
  11. if alertFrame:FindFirstChild("OutlineFrame") then
  12. alertFrame.Frame:Destroy();
  13. end;
  14. end;
  15. local Frame = Instance.new("Frame");
  16. local Image = Instance.new("ImageLabel");
  17. local Title = Instance.new("TextLabel");
  18. local Desc = Instance.new("TextLabel");
  19. local UICorner = Instance.new("UICorner");
  20. local UICorner2 = Instance.new("UICorner");
  21. local OutlineFrame = Instance.new("Frame");
  22. OutlineFrame.Name = "OutlineFrame";
  23. OutlineFrame.Parent = game.CoreGui.AlertFrame;
  24. OutlineFrame.ClipsDescendants = true;
  25. OutlineFrame.BackgroundColor3 = _G.Dark
  26. OutlineFrame.BackgroundTransparency = 0.4;
  27. OutlineFrame.Position = UDim2.new(1, 0, 0, 0);
  28. OutlineFrame.Size = UDim2.new(0, 212, 0, 72);
  29. Frame.Name = "Frame";
  30. Frame.Parent = OutlineFrame;
  31. Frame.ClipsDescendants = true;
  32. Frame.AnchorPoint = Vector2.new(0.5, 0.5);
  33. Frame.BackgroundColor3 = _G.Dark
  34. Frame.BackgroundTransparency = 0.1;
  35. Frame.Position = UDim2.new(0.5, 0, 0.5, 0);
  36. Frame.Size = UDim2.new(0, 200, 0, 60);
  37. Image.Name = "Icon";
  38. Image.Parent = Frame;
  39. Image.BackgroundColor3 = Color3.fromRGB(255, 255, 255);
  40. Image.BackgroundTransparency = 1;
  41. Image.Position = UDim2.new(0, 8, 0, 8);
  42. Image.Size = UDim2.new(0, 45, 0, 45);
  43. Image.Image = "rbxassetid://12523036534";
  44. Title.Parent = Frame;
  45. Title.BackgroundColor3 = Color3.fromRGB(150, 150, 150);
  46. Title.BackgroundTransparency = 1;
  47. Title.Position = UDim2.new(0, 55, 0, 14);
  48. Title.Size = UDim2.new(0, 10, 0, 20);
  49. Title.Font = Enum.Font.GothamBold;
  50. Title.Text = "Notification";
  51. Title.TextColor3 = Color3.fromRGB(255, 255, 255);
  52. Title.TextSize = 16;
  53. Title.TextXAlignment = Enum.TextXAlignment.Left;
  54. Desc.Parent = Frame;
  55. Desc.BackgroundColor3 = Color3.fromRGB(150, 150, 150);
  56. Desc.BackgroundTransparency = 1;
  57. Desc.Position = UDim2.new(0, 55, 0, 33);
  58. Desc.Size = UDim2.new(0, 10, 0, 10);
  59. Desc.Font = Enum.Font.GothamSemibold;
  60. Desc.TextTransparency = 0.3;
  61. Desc.Text = desc;
  62. Desc.TextColor3 = Color3.fromRGB(200, 200, 200);
  63. Desc.TextSize = 12;
  64. Desc.TextXAlignment = Enum.TextXAlignment.Left;
  65. UICorner.CornerRadius = UDim.new(0, 10);
  66. UICorner.Parent = Frame;
  67. UICorner2.CornerRadius = UDim.new(0, 12);
  68. UICorner2.Parent = OutlineFrame;
  69. OutlineFrame:TweenPosition(UDim2.new(1, -200, 0, 0), "Out", "Quad", 0.4, true);
  70. wait(2);
  71. OutlineFrame:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Quad", 0.5, true);
  72. wait(0.6);
  73. OutlineFrame:Destroy();
  74. end;
  75. return Alert;
Advertisement
Add Comment
Please, Sign In to add comment