SilentWraith

ADMIN script

May 15th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.76 KB | None | 0 0
  1. gsCoreGui = game:GetService("CoreGui")
  2. function Notification(style, msg, length)
  3.     if gsCoreGui:FindFirstChild("Notification") then
  4.         gsCoreGui:FindFirstChild("Notification"):Destroy()
  5.     end
  6.     local info = "http://www.roblox.com/asset/?id=1281284684"
  7.     local warning = "http://www.roblox.com/asset/?id=1281286925"
  8.     if style == "info" then
  9.         style = info
  10.     elseif style == "warning" then
  11.         style = warning
  12.     end
  13.     local Notification = Instance.new("ScreenGui")
  14.     local Frame = Instance.new("Frame")
  15.     local TextLabel = Instance.new("TextLabel")
  16.     local IMAGE = Instance.new("ImageLabel")
  17.     Notification.Name = "Notification"
  18.     Notification.Parent = gsCoreGui
  19.     Frame.Parent = Notification
  20.     Frame.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  21.     Frame.BackgroundTransparency = 0.20000000298023
  22.     Frame.BorderSizePixel = 0
  23.     Frame.Position = UDim2.new(0, 0, -0.2, 0)
  24.     Frame.Size = UDim2.new(1, 0, 0, 30)
  25.     TextLabel.Parent = Frame
  26.     TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  27.     TextLabel.BackgroundTransparency = 1
  28.     TextLabel.Size = UDim2.new(1, 0, 1, 0)
  29.     TextLabel.Font = Enum.Font.SourceSansLight
  30.     TextLabel.Text = msg
  31.     TextLabel.TextColor3 = Color3.new(0.905882, 0.905882, 0.905882)
  32.     TextLabel.TextScaled = true
  33.     TextLabel.TextSize = 14
  34.     TextLabel.TextWrapped = true
  35.     IMAGE.Parent = Frame
  36.     IMAGE.BackgroundTransparency = 1
  37.     IMAGE.Size = UDim2.new(0, 50, 0, 50)
  38.     IMAGE.Position = UDim2.new(0.1, 0, 0, 0)
  39.     IMAGE.Image = style
  40.     Frame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 1.5)
  41.     wait(length)
  42.     Frame:TweenPosition(UDim2.new(0, 0, -1.5, 0), "Out", "Quad", 3)
  43.     wait(3.01)
  44.     Notification:Destroy()
  45. end
  46. 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