forked from zzerexx/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomOutput.lua
More file actions
466 lines (427 loc) · 14.8 KB
/
CustomOutput.lua
File metadata and controls
466 lines (427 loc) · 14.8 KB
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
local mt = getrawmetatable(game)
local oldnc = mt.__namecall
setreadonly(mt,false)
mt.__namecall = newcclosure(function(self,...)
local args = {...}
if self == game and getnamecallmethod() == "FindFirstChild" and args[2] == true then
return false
end
return oldnc(self,...)
end)
setreadonly(mt,true)
for i,v in next, getconnections(game.DescendantAdded) do
v:Disable()
end
if typeof(getgenv().CustomOutput) == "Instance" then
getgenv().CustomOutput:Destroy()
end
local CustomOutput = Instance.new("ScreenGui")
local Topbar = Instance.new("Frame")
local Background = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Log = Instance.new("ScrollingFrame")
local Example = Instance.new("TextLabel")
local UIListLayout = Instance.new("UIListLayout")
local Buttons = Instance.new("Frame")
local UIListLayout_2 = Instance.new("UIListLayout")
local Output = Instance.new("TextButton")
local Icon = Instance.new("ImageLabel")
local Info = Instance.new("TextButton")
local Icon_2 = Instance.new("ImageLabel")
local Warning = Instance.new("TextButton")
local Icon_3 = Instance.new("ImageLabel")
local Error = Instance.new("TextButton")
local Icon_4 = Instance.new("ImageLabel")
local Search = Instance.new("Frame")
local Box = Instance.new("TextBox")
local Search_2 = Instance.new("ImageButton")
local Clear = Instance.new("TextButton")
local Close = Instance.new("ImageButton")
local ErrorIcon = Instance.new("ImageButton")
local Count = Instance.new("TextLabel")
local WarningIcon = Instance.new("ImageButton")
local Count_2 = Instance.new("TextLabel")
getgenv().CustomOutput = CustomOutput
CustomOutput.Name = game:GetService("HttpService"):GenerateGUID(false)
CustomOutput.Parent = game.CoreGui
CustomOutput.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
CustomOutput.DisplayOrder = 1000
CustomOutput.ResetOnSpawn = false
Topbar.Name = "Topbar"
Topbar.Parent = CustomOutput
Topbar.Active = true
Topbar.AnchorPoint = Vector2.new(0.5, 0.5)
Topbar.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Topbar.BackgroundTransparency = 0.800
Topbar.BorderSizePixel = 0
Topbar.Position = UDim2.new(0.5, 0, 0.5, -250)
Topbar.Size = UDim2.new(0, 700, 0, 30)
Background.Name = "Background"
Background.Parent = Topbar
Background.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Background.BackgroundTransparency = 0.600
Background.BorderSizePixel = 0
Background.Position = UDim2.new(0, -10, 0, -10)
Background.Size = UDim2.new(0, 720, 0, 500)
Background.ZIndex = 0
Title.Name = "Title"
Title.Parent = Topbar
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.BorderSizePixel = 0
Title.Size = UDim2.new(0, 175, 0, 30)
Title.ZIndex = 2
Title.Font = Enum.Font.Gotham
Title.Text = " Developer Console"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextSize = 14.000
Title.TextXAlignment = Enum.TextXAlignment.Left
Log.Name = "Log"
Log.Parent = Topbar
Log.Active = true
Log.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Log.BackgroundTransparency = 1.000
Log.BorderSizePixel = 0
Log.Position = UDim2.new(0, 0, 0, 80)
Log.Size = UDim2.new(0, 700, 0, 400)
Log.ScrollBarThickness = 8
Example.Name = "Example"
Example.Parent = Log
Example.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Example.BackgroundTransparency = 1.000
Example.BorderSizePixel = 0
Example.Size = UDim2.new(0, 695, 0, 18)
Example.Visible = false
Example.Font = Enum.Font.Code
Example.Text = "00:00:00 -- Example"
Example.TextColor3 = Color3.fromRGB(255, 255, 255)
Example.TextSize = 15.000
Example.TextWrapped = true
Example.TextXAlignment = Enum.TextXAlignment.Left
UIListLayout.Parent = Log
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
Buttons.Name = "Buttons"
Buttons.Parent = Topbar
Buttons.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Buttons.BackgroundTransparency = 1.000
Buttons.BorderSizePixel = 0
Buttons.Position = UDim2.new(0, 0, 0, 45)
Buttons.Size = UDim2.new(0, 345, 0, 20)
UIListLayout_2.Parent = Buttons
UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_2.Padding = UDim.new(0, 10)
Output.Name = "Output"
Output.Parent = Buttons
Output.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Output.BackgroundTransparency = 1.000
Output.BorderSizePixel = 0
Output.Size = UDim2.new(0, 75, 0, 20)
Output.Font = Enum.Font.Gotham
Output.Text = "Output"
Output.TextColor3 = Color3.fromRGB(255, 255, 255)
Output.TextSize = 13.000
Output.TextXAlignment = Enum.TextXAlignment.Right
Icon.Name = "Icon"
Icon.Parent = Output
Icon.BackgroundColor3 = Color3.fromRGB(50, 181, 255)
Icon.BorderColor3 = Color3.fromRGB(255, 255, 255)
Icon.BorderSizePixel = 0
Icon.Size = UDim2.new(0, 20, 0, 20)
Icon.Image = "rbxasset://textures/ui/LuaChat/icons/ic-check.png"
Info.Name = "Info"
Info.Parent = Buttons
Info.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Info.BackgroundTransparency = 1.000
Info.BorderSizePixel = 0
Info.Size = UDim2.new(0, 100, 0, 20)
Info.Font = Enum.Font.Gotham
Info.Text = "Information"
Info.TextColor3 = Color3.fromRGB(255, 255, 255)
Info.TextSize = 13.000
Info.TextXAlignment = Enum.TextXAlignment.Right
Icon_2.Name = "Icon"
Icon_2.Parent = Info
Icon_2.BackgroundColor3 = Color3.fromRGB(50, 181, 255)
Icon_2.BorderColor3 = Color3.fromRGB(255, 255, 255)
Icon_2.BorderSizePixel = 0
Icon_2.Size = UDim2.new(0, 20, 0, 20)
Icon_2.Image = "rbxasset://textures/ui/LuaChat/icons/ic-check.png"
Warning.Name = "Warning"
Warning.Parent = Buttons
Warning.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Warning.BackgroundTransparency = 1.000
Warning.BorderSizePixel = 0
Warning.Size = UDim2.new(0, 80, 0, 20)
Warning.Font = Enum.Font.Gotham
Warning.Text = "Warning"
Warning.TextColor3 = Color3.fromRGB(255, 255, 255)
Warning.TextSize = 13.000
Warning.TextXAlignment = Enum.TextXAlignment.Right
Icon_3.Name = "Icon"
Icon_3.Parent = Warning
Icon_3.BackgroundColor3 = Color3.fromRGB(50, 181, 255)
Icon_3.BorderColor3 = Color3.fromRGB(255, 255, 255)
Icon_3.BorderSizePixel = 0
Icon_3.Size = UDim2.new(0, 20, 0, 20)
Icon_3.Image = "rbxasset://textures/ui/LuaChat/icons/ic-check.png"
Error.Name = "Error"
Error.Parent = Buttons
Error.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Error.BackgroundTransparency = 1.000
Error.BorderSizePixel = 0
Error.Size = UDim2.new(0, 60, 0, 20)
Error.Font = Enum.Font.Gotham
Error.Text = "Error"
Error.TextColor3 = Color3.fromRGB(255, 255, 255)
Error.TextSize = 13.000
Error.TextXAlignment = Enum.TextXAlignment.Right
Icon_4.Name = "Icon"
Icon_4.Parent = Error
Icon_4.BackgroundColor3 = Color3.fromRGB(50, 181, 255)
Icon_4.BorderColor3 = Color3.fromRGB(255, 255, 255)
Icon_4.BorderSizePixel = 0
Icon_4.Size = UDim2.new(0, 20, 0, 20)
Icon_4.Image = "rbxasset://textures/ui/LuaChat/icons/ic-check.png"
Search.Name = "Search"
Search.Parent = Topbar
Search.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Search.BackgroundTransparency = 0.800
Search.BorderSizePixel = 0
Search.Position = UDim2.new(0, 500, 0, 40)
Search.Size = UDim2.new(0, 200, 0, 30)
Box.Name = "Box"
Box.Parent = Search
Box.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Box.BackgroundTransparency = 1.000
Box.BorderSizePixel = 0
Box.Position = UDim2.new(0, 40, 0, 0)
Box.Size = UDim2.new(0, 160, 0, 30)
Box.Font = Enum.Font.Gotham
Box.PlaceholderText = "Search"
Box.Text = ""
Box.TextColor3 = Color3.fromRGB(255, 255, 255)
Box.TextSize = 14.000
Box.TextXAlignment = Enum.TextXAlignment.Left
Search_2.Name = "Search"
Search_2.Parent = Search
Search_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Search_2.BackgroundTransparency = 1.000
Search_2.BorderSizePixel = 0
Search_2.Position = UDim2.new(0, 5, 0, 5)
Search_2.Size = UDim2.new(0, 20, 0, 20)
Search_2.AutoButtonColor = false
Search_2.Image = "rbxasset://textures/DevConsole/Search.png"
Clear.Name = "Clear"
Clear.Parent = Topbar
Clear.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Clear.BackgroundTransparency = 0.800
Clear.BorderSizePixel = 0
Clear.Position = UDim2.new(0, 355, 0, 40)
Clear.Size = UDim2.new(0, 135, 0, 30)
Clear.Font = Enum.Font.Gotham
Clear.Text = "Clear Output"
Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
Clear.TextSize = 14.000
Close.Name = "Close"
Close.Parent = Topbar
Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Close.BackgroundTransparency = 1.000
Close.BorderSizePixel = 0
Close.Position = UDim2.new(1, -22, 0, 9)
Close.Size = UDim2.new(0, 13, 0, 13)
Close.Image = "rbxasset://textures/DevConsole/Close.png"
ErrorIcon.Name = "ErrorIcon"
ErrorIcon.Parent = Topbar
ErrorIcon.AnchorPoint = Vector2.new(0.5, 0.5)
ErrorIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ErrorIcon.BackgroundTransparency = 1.000
ErrorIcon.BorderSizePixel = 0
ErrorIcon.Position = UDim2.new(0.5, -30, 0.5, 0)
ErrorIcon.Size = UDim2.new(0, 18, 0, 18)
ErrorIcon.Image = "rbxasset://textures/DevConsole/Error.png"
Count.Name = "Count"
Count.Parent = ErrorIcon
Count.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Count.BackgroundTransparency = 1.000
Count.BorderSizePixel = 0
Count.Position = UDim2.new(1, 5, 0, 1)
Count.Size = UDim2.new(0, 9, 0, 18)
Count.Font = Enum.Font.Gotham
Count.Text = "0"
Count.TextColor3 = Color3.fromRGB(255, 255, 255)
Count.TextSize = 14.000
Count.TextXAlignment = Enum.TextXAlignment.Left
WarningIcon.Name = "WarningIcon"
WarningIcon.Parent = Topbar
WarningIcon.AnchorPoint = Vector2.new(0.5, 0.5)
WarningIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
WarningIcon.BackgroundTransparency = 1.000
WarningIcon.BorderSizePixel = 0
WarningIcon.Position = UDim2.new(0.5, 30, 0.5, 0)
WarningIcon.Size = UDim2.new(0, 18, 0, 18)
WarningIcon.Image = "rbxasset://textures/DevConsole/Warning.png"
Count_2.Name = "Count"
Count_2.Parent = WarningIcon
Count_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Count_2.BackgroundTransparency = 1.000
Count_2.BorderSizePixel = 0
Count_2.Position = UDim2.new(1, 5, 0, 1)
Count_2.Size = UDim2.new(0, 9, 0, 18)
Count_2.Font = Enum.Font.Gotham
Count_2.Text = "0"
Count_2.TextColor3 = Color3.fromRGB(255, 255, 255)
Count_2.TextSize = 14.000
Count_2.TextXAlignment = Enum.TextXAlignment.Left
local function HFYC_fake_script() -- Topbar.MainScript
local script = Instance.new('LocalScript', Topbar)
local UIS = game:GetService("UserInputService")
local StarterGui = game:GetService("StarterGui")
local LogService = game:GetService("LogService")
script.Parent.Draggable = true
script.Parent.Log.Example.AutomaticSize = Enum.AutomaticSize.Y
StarterGui:SetCore("DevConsoleVisible",false)
UIS.InputBegan:Connect(function(i,gp)
if i.KeyCode == Enum.KeyCode.F9 then
StarterGui:SetCore("DevConsoleVisible", false)
script.Parent.Visible = not script.Parent.Visible
end
end)
script.Parent.Close.MouseButton1Click:Connect(function()
script.Parent.Visible = false
end)
LogService.MessageOut:Connect(function(msg,msgtype)
local new = script.Parent.Log.Example:Clone()
new.Parent = script.Parent.Log
new.Visible = true
new.Name = "Output"
new.Text = ""
if os.date():split(" ")[4]:len() < 3 then
new.Text = os.date():split(" ")[5].." -- "..msg:gsub("\n","\n ")
else
new.Text = os.date():split(" ")[4].." -- "..msg:gsub("\n","\n ")
end
if msgtype == Enum.MessageType.MessageOutput then
new.TextColor3 = Color3.fromRGB(255,255,255)
elseif msgtype == Enum.MessageType.MessageInfo then
new.TextColor3 = Color3.fromRGB(0,150,255)
new.Name = "Info"
elseif msgtype == Enum.MessageType.MessageWarning then
new.TextColor3 = Color3.fromRGB(255,255,0)
new.Name = "Warning"
script.Parent.WarningIcon.Count.Text = script.Parent.WarningIcon.Count.Text + 1
elseif msgtype == Enum.MessageType.MessageError then
new.TextColor3 = Color3.fromRGB(255,0,0)
new.Name = "Error"
script.Parent.ErrorIcon.Count.Text = script.Parent.ErrorIcon.Count.Text + 1
end
end)
script.Parent.Log.UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
script.Parent.Log.CanvasSize = UDim2.new(0,0,0,script.Parent.Log.UIListLayout.AbsoluteContentSize.Y)
end)
local stuff = {
Output = true,
Info = true,
Warning = true,
Error = true
}
for i,v in next, script.Parent.Buttons:GetChildren() do
if v:IsA("TextButton") then
v.MouseButton1Click:Connect(function()
stuff[v.Name] = not stuff[v.Name]
if stuff[v.Name] then
v.Icon.Image = "rbxasset://textures/ui/LuaChat/icons/ic-check.png"
v.Icon.BackgroundColor3 = Color3.fromRGB(50,181,255)
for i2,v2 in next, script.Parent.Log:GetChildren() do
if v2.Name == v.Name then
v2.Visible = true
end
end
else
v.Icon.Image = ""
v.Icon.BackgroundColor3 = Color3.fromRGB(78,84,96)
for i2,v2 in next, script.Parent.Log:GetChildren() do
if v2.Name == v.Name then
v2.Visible = false
end
end
end
end)
end
end
script.Parent.Clear.MouseButton1Click:Connect(function()
for i,v in next, script.Parent.Log:GetChildren() do
if v:IsA("TextLabel") and v.Name ~= "Example" then
v:Destroy()
end
end
script.Parent.WarningIcon.Count.Text = "0"
script.Parent.ErrorIcon.Count.Text = "0"
end)
script.Parent.Search.Search.MouseButton1Click:Connect(function()
if script.Parent.Search.Box.Text:gsub(" ","") ~= "" then
for i,v in next, script.Parent.Log:GetChildren() do
if v:IsA("TextLabel") then
if string.match(v.Text,script.Parent.Search.Box.Text) and v.Name ~= "Example" then
v.Visible = true
else
v.Visible = false
end
end
end
else
for i,v in next, script.Parent.Log:GetChildren() do
if v:IsA("TextLabel") then
if v.Name ~= "Example" then
v.Visible = true
end
end
end
end
end)
script.Parent.ErrorIcon.MouseButton1Click:Connect(function()
for i,v in next, script.Parent.Buttons:GetChildren() do
if stuff[v.Name] then
stuff[v.Name] = false
v.Icon.Image = ""
v.Icon.BackgroundColor3 = Color3.fromRGB(78,84,96)
for i2,v2 in next, script.Parent.Log:GetChildren() do
if v2.Name == v.Name then
v2.Visible = false
end
end
end
end
stuff["Error"] = true
script.Parent.Buttons.Error.Icon.Image = "rbxasset://textures/ui/LuaChat/icons/ic-check.png"
script.Parent.Buttons.Error.Icon.BackgroundColor3 = Color3.fromRGB(50,181,255)
for i,v in next, script.Parent.Log:GetChildren() do
if v.Name == "Error" then
v.Visible = true
end
end
end)
script.Parent.WarningIcon.MouseButton1Click:Connect(function()
for i,v in next, script.Parent.Buttons:GetChildren() do
if stuff[v.Name] then
stuff[v.Name] = false
v.Icon.Image = ""
v.Icon.BackgroundColor3 = Color3.fromRGB(78,84,96)
for i2,v2 in next, script.Parent.Log:GetChildren() do
if v2.Name == v.Name then
v2.Visible = false
end
end
end
end
stuff["Warning"] = true
script.Parent.Buttons.Warning.Icon.Image = "rbxasset://textures/ui/LuaChat/icons/ic-check.png"
script.Parent.Buttons.Warning.Icon.BackgroundColor3 = Color3.fromRGB(50,181,255)
for i,v in next, script.Parent.Log:GetChildren() do
if v.Name == "Warning" then
v.Visible = true
end
end
end)
end
coroutine.wrap(HFYC_fake_script)()