forked from bloodball/UI-Librarys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotifHolder.lua
16 lines (14 loc) · 855 Bytes
/
NotifHolder.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if not shared.WhereToPut then
shared.WhereToPut = type(gethui) == "function" and gethui() or game:GetService("CoreGui")
shared.STX_Nofitication = Instance.new("ScreenGui")
shared.STX_NofiticationUIListLayout = Instance.new("UIListLayout")
shared.STX_Nofitication.Name = "STX_Nofitication"
shared.STX_Nofitication.Parent = shared.WhereToPut
shared.STX_Nofitication.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
shared.STX_Nofitication.ResetOnSpawn = false
shared.STX_NofiticationUIListLayout.Name = "STX_NofiticationUIListLayout"
shared.STX_NofiticationUIListLayout.Parent = shared.STX_Nofitication
shared.STX_NofiticationUIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Right
shared.STX_NofiticationUIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
shared.STX_NofiticationUIListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
end