forked from bloodball/UI-Librarys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotificationsUpdated.lua
190 lines (163 loc) · 7.42 KB
/
NotificationsUpdated.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
local Nofitication = {}
local GUI = shared.STX_Nofitication
function Nofitication:Notify(nofdebug, middledebug, all)
local SelectedType = string.lower(tostring(middledebug.Type))
local ambientShadow = Instance.new("ImageLabel")
local Window = Instance.new("Frame")
local Outline_A = Instance.new("Frame")
local WindowTitle = Instance.new("TextLabel")
local WindowDescription = Instance.new("TextLabel")
ambientShadow.Name = "ambientShadow"
ambientShadow.Parent = GUI
ambientShadow.AnchorPoint = Vector2.new(0.5, 0.5)
ambientShadow.BackgroundTransparency = 1.000
ambientShadow.BorderSizePixel = 0
ambientShadow.Position = UDim2.new(0.91525954, 0, 0.936809778, 0)
ambientShadow.Size = UDim2.new(0, 0, 0, 0)
ambientShadow.Image = "rbxassetid://1316045217"
ambientShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
ambientShadow.ImageTransparency = 0.400
ambientShadow.ScaleType = Enum.ScaleType.Slice
ambientShadow.SliceCenter = Rect.new(10, 10, 118, 118)
Window.Name = "Window"
Window.Parent = ambientShadow
Window.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
Window.BorderSizePixel = 0
Window.Position = UDim2.new(0, 5, 0, 5)
Window.Size = UDim2.new(0, 230, 0, 80)
Window.ZIndex = 2
Outline_A.Name = "Outline_A"
Outline_A.Parent = Window
Outline_A.BackgroundColor3 = middledebug.OutlineColor
Outline_A.BorderSizePixel = 0
Outline_A.Position = UDim2.new(0, 0, 0, 25)
Outline_A.Size = UDim2.new(0, 230, 0, 2)
Outline_A.ZIndex = 5
WindowTitle.Name = "WindowTitle"
WindowTitle.Parent = Window
WindowTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
WindowTitle.BackgroundTransparency = 1.000
WindowTitle.BorderColor3 = Color3.fromRGB(27, 42, 53)
WindowTitle.BorderSizePixel = 0
WindowTitle.Position = UDim2.new(0, 8, 0, 2)
WindowTitle.Size = UDim2.new(0, 222, 0, 22)
WindowTitle.ZIndex = 4
WindowTitle.Font = Enum.Font.GothamSemibold
WindowTitle.Text = nofdebug.Title
WindowTitle.TextColor3 = Color3.fromRGB(220, 220, 220)
WindowTitle.TextSize = 12.000
WindowTitle.TextXAlignment = Enum.TextXAlignment.Left
WindowDescription.Name = "WindowDescription"
WindowDescription.Parent = Window
WindowDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
WindowDescription.BackgroundTransparency = 1.000
WindowDescription.BorderColor3 = Color3.fromRGB(27, 42, 53)
WindowDescription.BorderSizePixel = 0
WindowDescription.Position = UDim2.new(0, 8, 0, 34)
WindowDescription.Size = UDim2.new(0, 216, 0, 40)
WindowDescription.ZIndex = 4
WindowDescription.Font = Enum.Font.GothamSemibold
WindowDescription.Text = nofdebug.Description
WindowDescription.TextColor3 = Color3.fromRGB(180, 180, 180)
WindowDescription.TextSize = 12.000
WindowDescription.TextWrapped = true
WindowDescription.TextXAlignment = Enum.TextXAlignment.Left
WindowDescription.TextYAlignment = Enum.TextYAlignment.Top
if SelectedType == "default" then
local function ORBHB_fake_script()
local script = Instance.new('LocalScript', ambientShadow)
ambientShadow:TweenSize(UDim2.new(0, 240, 0, 90), "Out", "Linear", 0.2)
Window.Size = UDim2.new(0, 230, 0, 80)
Outline_A:TweenSize(UDim2.new(0, 0, 0, 2), "Out", "Linear", middledebug.Time)
wait(middledebug.Time)
ambientShadow:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Linear", 0.2)
wait(0.2)
ambientShadow:Destroy()
end
coroutine.wrap(ORBHB_fake_script)()
elseif SelectedType == "image" then
ambientShadow:TweenSize(UDim2.new(0, 240, 0, 90), "Out", "Linear", 0.2)
Window.Size = UDim2.new(0, 230, 0, 80)
WindowTitle.Position = UDim2.new(0, 24, 0, 2)
local ImageButton = Instance.new("ImageButton")
ImageButton.Parent = Window
ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton.BackgroundTransparency = 1.000
ImageButton.BorderSizePixel = 0
ImageButton.Position = UDim2.new(0, 4, 0, 4)
ImageButton.Size = UDim2.new(0, 18, 0, 18)
ImageButton.ZIndex = 5
ImageButton.AutoButtonColor = false
ImageButton.Image = all.Image
ImageButton.ImageColor3 = all.ImageColor
local function ORBHB_fake_script()
local script = Instance.new('LocalScript', ambientShadow)
Outline_A:TweenSize(UDim2.new(0, 0, 0, 2), "Out", "Linear", middledebug.Time)
wait(middledebug.Time)
ambientShadow:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Linear", 0.2)
wait(0.2)
ambientShadow:Destroy()
end
coroutine.wrap(ORBHB_fake_script)()
elseif SelectedType == "option" then
ambientShadow:TweenSize(UDim2.new(0, 240, 0, 110), "Out", "Linear", 0.2)
Window.Size = UDim2.new(0, 230, 0, 100)
local Uncheck = Instance.new("ImageButton")
local Check = Instance.new("ImageButton")
Uncheck.Name = "Uncheck"
Uncheck.Parent = Window
Uncheck.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Uncheck.BackgroundTransparency = 1.000
Uncheck.BorderSizePixel = 0
Uncheck.Position = UDim2.new(0, 7, 0, 76)
Uncheck.Size = UDim2.new(0, 18, 0, 18)
Uncheck.ZIndex = 5
Uncheck.AutoButtonColor = false
Uncheck.Image = "http://www.roblox.com/asset/?id=6031094678"
Uncheck.ImageColor3 = Color3.fromRGB(255, 84, 84)
Check.Name = "Check"
Check.Parent = Window
Check.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Check.BackgroundTransparency = 1.000
Check.BorderSizePixel = 0
Check.Position = UDim2.new(0, 28, 0, 76)
Check.Size = UDim2.new(0, 18, 0, 18)
Check.ZIndex = 5
Check.AutoButtonColor = false
Check.Image = "http://www.roblox.com/asset/?id=6031094667"
Check.ImageColor3 = Color3.fromRGB(83, 230, 50)
local function ORBHB_fake_script()
local script = Instance.new('LocalScript', ambientShadow)
local Stilthere = true
local function Unchecked()
pcall(function()
all.Callback(false)
end)
ambientShadow:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Linear", 0.2)
wait(0.2)
ambientShadow:Destroy()
Stilthere = false
end
local function Checked()
pcall(function()
all.Callback(true)
end)
ambientShadow:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Linear", 0.2)
wait(0.2)
ambientShadow:Destroy()
Stilthere = false
end
Uncheck.MouseButton1Click:Connect(Unchecked)
Check.MouseButton1Click:Connect(Checked)
Outline_A:TweenSize(UDim2.new(0, 0, 0, 2), "Out", "Linear", middledebug.Time)
wait(middledebug.Time)
if Stilthere == true then
ambientShadow:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Linear", 0.2)
wait(0.2)
ambientShadow:Destroy()
end
end
coroutine.wrap(ORBHB_fake_script)()
end
end
return Nofitication