Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function notify(toptext, btext, tim)
- local GUI = Instance.new("ScreenGui")
- local Notif = Instance.new("Frame")
- local Top = Instance.new("Frame")
- local TopText = Instance.new("TextLabel")
- local BText = Instance.new("TextLabel")
- GUI.Parent = game:GetService("CoreGui")
- Notif.Name = "Notif"
- Notif.Parent = GUI
- Notif.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Notif.BorderSizePixel = 0
- Notif.Position = UDim2.new(0.404000014, 0, -0.5, 0)
- Notif.Size = UDim2.new(0, 261, 0, 115)
- Top.Name = "Top"
- Top.Parent = Notif
- Top.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Top.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- Top.BorderSizePixel = 0
- Top.Size = UDim2.new(0, 261, 0, 31)
- TopText.Name = "TopText"
- TopText.Parent = Notif
- TopText.BackgroundColor3 = Color3.new(1, 1, 1)
- TopText.BackgroundTransparency = 1
- TopText.BorderSizePixel = 0
- TopText.Position = UDim2.new(0.118773945, 0, 0, 0)
- TopText.Size = UDim2.new(0, 200, 0, 31)
- TopText.Font = Enum.Font.SourceSans
- TopText.Text = toptext
- TopText.TextColor3 = Color3.new(1, 1, 1)
- TopText.TextSize = 20
- BText.Name = "BText"
- BText.Parent = Notif
- BText.BackgroundColor3 = Color3.new(1, 1, 1)
- BText.BackgroundTransparency = 1
- BText.BorderSizePixel = 0
- BText.Position = UDim2.new(0, 0, 0.269565225, 0)
- BText.Size = UDim2.new(0, 261, 0, 73)
- BText.Font = Enum.Font.SourceSans
- BText.Text = btext
- BText.TextColor3 = Color3.new(1, 1, 1)
- BText.TextSize = 20
- BText.TextWrapped = true
- wait(0.1)
- Notif:TweenPosition(UDim2.new(0.404, 0,0.404, 0), "Out", "Sine", 0.5)
- wait(tim)
- Notif:TweenPosition(UDim2.new(0.404, 0,-0.5, 0), "Out", "Sine", 0.5)
- wait(2)
- GUI:Destroy()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement