Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gsCoreGui = game:GetService("CoreGui")
- function Notification(style, msg, length)
- if gsCoreGui:FindFirstChild("Notification") then
- gsCoreGui:FindFirstChild("Notification"):Destroy()
- end
- local info = "http://www.roblox.com/asset/?id=1281284684"
- local warning = "http://www.roblox.com/asset/?id=1281286925"
- if style == "info" then
- style = info
- elseif style == "warning" then
- style = warning
- end
- local Notification = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local IMAGE = Instance.new("ImageLabel")
- Notification.Name = "Notification"
- Notification.Parent = gsCoreGui
- Frame.Parent = Notification
- Frame.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- Frame.BackgroundTransparency = 0.20000000298023
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0, 0, -0.2, 0)
- Frame.Size = UDim2.new(1, 0, 0, 30)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.Font = Enum.Font.SourceSansLight
- TextLabel.Text = msg
- TextLabel.TextColor3 = Color3.new(0.905882, 0.905882, 0.905882)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- IMAGE.Parent = Frame
- IMAGE.BackgroundTransparency = 1
- IMAGE.Size = UDim2.new(0, 50, 0, 50)
- IMAGE.Position = UDim2.new(0.1, 0, 0, 0)
- IMAGE.Image = style
- Frame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 1.5)
- wait(length)
- Frame:TweenPosition(UDim2.new(0, 0, -1.5, 0), "Out", "Quad", 3)
- wait(3.01)
- Notification:Destroy()
- end
- Notification("warning", "You are not using the latest version of shattervast, get the new loadstring from the discord or v3rmillion thread.", 100)
Add Comment
Please, Sign In to add comment