1 | local function Lulas(txt, dur) |
2 | local TweenService = game:GetService("TweenService") |
3 | |
4 | local GUI = Instance.new("ScreenGui") |
5 | GUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") |
6 | |
7 | local MainFrame = Instance.new("Frame") |
8 | MainFrame.Size = UDim2.new(0, 200, 0, 60) |
9 | MainFrame.Position = UDim2.new(0, -200, 0.95, -60) -- Start off-screen |
10 | MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) |
11 | MainFrame.Parent = GUI |
12 | |
13 | local MainFrameCorner = Instance.new("UICorner") |
14 | MainFrameCorner.CornerRadius = UDim.new(0, 10) |
15 | MainFrameCorner.Parent = MainFrame |
16 | |
17 | local NotificationFrame = Instance.new("Frame") |
18 | NotificationFrame.Size = UDim2.new(0.9, 0, 0.8, 0) |
19 | NotificationFrame.Position = UDim2.new(0.05, 0, 0.1, 0) |
20 | NotificationFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)--darkgray |
21 | NotificationFrame.Parent = MainFrame |
22 | |
23 | local NotificationFrameCorner = Instance.new("UICorner") |
24 | NotificationFrameCorner.CornerRadius = UDim.new(0, 10) |
25 | NotificationFrameCorner.Parent = NotificationFrame |
26 | |
27 | local TextLabel = Instance.new("TextLabel") |
28 | TextLabel.Size = UDim2.new(0.9, 0, 0.7, 0) |
29 | TextLabel.Position = UDim2.new(0.05, 0, 0.15, 0) |
30 | TextLabel.BackgroundTransparency = 1 |
31 | TextLabel.TextColor3 = Color3.fromRGB(255, 165, 0) -- Orange |
32 | TextLabel.TextScaled = true |
33 | TextLabel.TextXAlignment = Enum.TextXAlignment.Left |
34 | TextLabel.TextYAlignment = Enum.TextYAlignment.Top |
35 | TextLabel.Text = txt |
36 | TextLabel.Parent = NotificationFrame |
37 | |
38 | local ProgressBar = Instance.new("Frame") |
39 | ProgressBar.Size = UDim2.new(0.9, 0, 0.1, 0) |
40 | ProgressBar.Position = UDim2.new(0.05, 0, 0.85, 0) |
41 | ProgressBar.BackgroundColor3 = Color3.fromRGB(100, 100, 100) |
42 | ProgressBar.Parent = NotificationFrame |
43 | |
44 | local ProgressBarFill = Instance.new("Frame") |
45 | ProgressBarFill.Size = UDim2.new(1, 0, 1, 0) |
46 | ProgressBarFill.BackgroundColor3 = Color3.fromRGB(255, 165, 0) -- Orange |
47 | ProgressBarFill.Parent = ProgressBar |
48 | |
49 | local function showNotif() |
50 | local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) |
51 | local endPosition = UDim2.new(0.01, 0, 0.95, -60) |
52 | local tweenShow = TweenService:Create(MainFrame, tweenInfo, { Position = endPosition }) |
53 | tweenShow:Play() |
54 | |
55 | local kountdown = dur |
56 | local startTime = tick() |
57 | |
58 | while tick() - startTime < kountdown do |
59 | local elapsedTime = tick() - startTime |
60 | local progress = 1 - (elapsedTime / kountdown) |
61 | ProgressBarFill:TweenSize(UDim2.new(progress, 0, 1, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 0.1, true) |
62 | task.wait() |
63 | end |
64 | local tweenHideInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In) |
65 | local endHidePosition = UDim2.new(-1, 0, 0.95, -60) |
66 | local tweenHide = TweenService:Create(MainFrame, tweenHideInfo, { Position = endHidePosition }) |
67 | tweenHide:Play() |
68 | tweenHide.Completed:Wait() |
69 | GUI:Destroy() |
70 | end |
71 | showNotif() |
72 | end |
73 | z,zz,zzz,zaza=Lulas,Lulas,Lulas,Lulas; |
74 | Lulas("skript by lulaslollipop🍭...👺",4); |