R

brixk admin rewrite

public
rrixh Oct 27, 2023 Never 105
Clone
Plaintext rewriteBrixkAdmin_lulaslollipop 1560 lines (1469 loc) | 58.38 KB
1
--[[
2
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
3
]]
4
if game:GetService("CoreGui"):FindFirstChild("BrickAdminGUI") then
5
game:GetService("CoreGui"):FindFirstChild("BrickAdminGUI"):Destroy()
6
end
7
local startuptime = tick()
8
local Hooked, speedHooked = false, false
9
10
11
--[[Functions]]
12
local function GetService(a)
13
return game:GetService(a)
14
end
15
local function findPlayer(arg1)
16
local cPlayers = game:GetService("Players")
17
arg1 = arg1:lower()
18
19
if arg1 == "random" then
20
local players = cPlayers:GetPlayers()
21
return players[math.random(1, #players)]
22
elseif arg1 == "me" then
23
return cPlayers.LocalPlayer
24
end
25
for _, plr in ipairs(cPlayers:GetPlayers()) do
26
local nameLower = plr.Name:lower()
27
local displayNameLower = plr.DisplayName:lower()
28
29
if nameLower:sub(1, #arg1) == arg1 or displayNameLower:sub(1, #arg1) == arg1 then
30
return plr
31
end
32
end
33
34
return nil
35
end
36
37
--[[Services]]
38
local ReplicatedStorage = GetService("ReplicatedStorage")
39
local players = GetService("Players")
40
local TextChatService = GetService("TextChatService")
41
local RunService = GetService("RunService")
42
local MarketplaceService = GetService("MarketplaceService")
43
local Workspace = GetService("Workspace")
44
45
if ReplicatedStorage:FindFirstChild("DefaultChatSystemChatEvents") then
46
clientEvent = ReplicatedStorage.DefaultChatSystemChatEvents.OnMessageDoneFiltering.OnClientEvent
47
end
48
local msgrec = TextChatService.MessageReceived
49
if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
50
chatMethod = 2
51
elseif TextChatService.ChatVersion == Enum.ChatVersion.LegacyChatService then
52
chatMethod = 1
53
end
54
55
local function chat(msg, channel)
56
if chatMethod == 1 then
57
if not channel then
58
channel = "All"
59
end
60
if channel == "RBXGeneral" then
61
channel = "All"
62
end
63
ReplicatedStorage:FindFirstChild("DefaultChatSystemEvents").SayMessageRequest:FireServer(msg, channel)
64
elseif chatMethod == 2 then
65
if not channel then
66
channel = "RBXGeneral"
67
end
68
if channel == "All" then
69
channel = "RBXGeneral"
70
end
71
TextChatService.TextChannels:FindFirstChild(channel):SendAsync(msg)
72
end
73
end
74
if not isfolder("BrickAdmin") then
75
makefolder("BrickAdmin")
76
makefolder("BrickAdmin/Extensions")
77
makefolder("BrickAdmin/Chatlogs")
78
makefolder("BrickAdmin/Scripts")
79
makefolder("BrickAdmin/Settings")
80
makefolder("BrickAdmin/Runs")
81
makefolder("BrickAdmin/ExtensionErrors")
82
end
83
if not isfolder("BrickAdmin/Runs") then
84
makefolder("BrickAdmin/Runs")
85
end
86
if not isfolder("BrickAdmin/Settings") then
87
makefolder("BrickAdmin/Settings")
88
end
89
if not isfolder("BrickAdmin/Extensions") then
90
makefolder("BrickAdmin/Extensions")
91
end
92
if not isfolder("BrickAdmin/Chatlogs") then
93
makefolder("BrickAdmin/Chatlogs")
94
end
95
if not isfolder("BrickAdmin/Scripts") then
96
makefolder("BrickAdmin/Scripts")
97
end
98
if not isfolder("BrickAdmin/ExtensionErrors") then
99
makefolder("BrickAdmin/ExtensionErrors")
100
end
101
if not isfile("BrickAdmin/Prefix") then
102
prefix = ";"
103
writefile("BrickAdmin/Prefix", ";")
104
else
105
prefix = readfile("BrickAdmin/Prefix"):sub(1, 1)
106
end
107
108
if isfile("BrickAdmin/Settings/News") then
109
news = readfile("BrickAdmin/Settings/News")
110
else
111
writefile("BrickAdmin/Settings/News", tostring(true))
112
news = "true"
113
end
114
if isfile("BrickAdmin/Settings/Ext") then
115
IES = readfile("BrickAdmin/Settings/Ext")
116
else
117
writefile("BrickAdmin/Settings/Ext",tostring(true))
118
IES = "true"
119
end
120
if isfile("BrickAdmin/Settings/Plr") then
121
plrnameshows = readfile("BrickAdmin/Settings/Plr")
122
else
123
writefile("BrickAdmin/Settings/Plr",tostring(true))
124
plrnameshows = "true"
125
end
126
if isfile("BrickAdmin/Settings/SRF") then
127
SRF = readfile("BrickAdmin/Settings/SRF")
128
else
129
writefile("BrickAdmin/Settings/SRF",tostring(true))
130
SRF = "true"
131
end
132
if isfile("BrickAdmin/Settings/AV") then
133
AV = readfile("BrickAdmin/Settings/AV")
134
else
135
writefile("BrickAdmin/Settings/AV",tostring(true))
136
AV = "true"
137
end
138
if isfile("BrickAdmin/Settings/RP") then
139
RP = readfile("BrickAdmin/Settings/RP")
140
else
141
writefile("BrickAdmin/Settings/RP",tostring(true))
142
RP = "true"
143
end
144
if isfile("BrickAdmin/Settings/Antikick") then
145
AK = readfile("BrickAdmin/Settings/AK")
146
else
147
writefile("BrickAdmin/Settings/AK",tostring(true))
148
AK = "true"
149
end
150
if isfile("BrickAdmin/Favorites") then
151
favorites = readfile("BrickAdmin/Favorites")
152
else
153
favorites = "No favorited commands."
154
writefile("BrickAdmin/Favorites", favorites)
155
end
156
157
--[[Variables]]
158
local date = os.date("*t")
159
local dat = date.day.."/"..date.month.."/"..date.year.." "..date.hour..":"..date.min
160
local player = players.LocalPlayer
161
for i, v in next, workspace:GetDescendants() do
162
if v.Name == player.Name and v:IsA("Model") and v:FindFirstChild("Humanoid") then
163
character = v
164
end
165
end
166
local humanoid = character:FindFirstChild("Humanoid")
167
local rootpart = character:FindFirstChild("HumanoidRootPart")
168
GetService("Players").LocalPlayer.CharacterAdded:Connect(function()
169
players = GetService("Players")
170
player = players.LocalPlayer
171
character = player["Character"]
172
humanoid = character:FindFirstChild("Humanoid")
173
rootpart = character:FindFirstChild("HumanoidRootPart")
174
end)
175
local chatlog = ""
176
local isFloat = false
177
local isSit = false
178
local isTp = false
179
local isSpin = false
180
local isSpam = false
181
local lastPlr = nil
182
183
local function spinCharacter(speed)
184
185
while isSpin do
186
local deltaTime = task.wait()
187
188
local currentRotation = rootpart.Orientation
189
local newYRotation = currentRotation.Y + (speed * deltaTime)
190
rootpart.CFrame = CFrame.new(rootpart.Position) * CFrame.Angles(0, math.rad(newYRotation), 0)
191
end
192
end
193
194
local rl = {
195
"Is your name Google? Because you've got everything I've been searching for",
196
"Are you a magician? Whenever I look at you, everyone else disappears",
197
"Do you have a name, or can I call you mine?",
198
"Are you a parking ticket? Because you've got 'FINE' written all over you",
199
"Can I follow you home? Cause my parents always told me to follow my dreams",
200
"If you were a vegetable, you'd be a 'cute-cumber.'",
201
"Do you have a map? I keep getting lost in your eyes",
202
"If you were a fruit, you'd be a 'fine-apple.'",
203
"Do you have a name, or can I call you mine?",
204
}
205
--[[Number Variables]]
206
local extensions = 0
207
local i = 1
208
local xz = 1
209
local oldGravity = Workspace.Gravity
210
211
local function antiVoid(state)
212
GetService("RunService").Heartbeat:Connect(function()
213
task.wait(2)
214
if state == "true" or state == true then
215
Workspace.FallenPartsDestroyHeight = "nan"
216
if rootpart.CFrame.Y < -500 then
217
repeat rootpart.CFrame += Vector3.new(0, 100, 0) until rootpart.CFrame.Y > 5
218
end
219
elseif state == "false" or state == false then
220
Workspace.FallenPartsDestroyHeight = -500
221
end
222
end)
223
end
224
--[[File stuff]]
225
if isfolder("BrickAdmin/Extensions") then
226
local files = listfiles("BrickAdmin/Extensions")
227
228
if files ~= nil and files ~= "" then
229
for _, file in ipairs(files) do
230
if isfile(file) then
231
local content = readfile(file)
232
if content ~= nil then
233
extensions+=1
234
end
235
end
236
end
237
end
238
end
239
local setclipboard = setclipboard or toclipboard
240
241
local function isTextObj(obj)
242
if obj:IsA("TextBox") or obj:IsA("TextLabel") or obj:IsA("TextButton") then
243
return true
244
else
245
return false
246
end
247
end
248
local function canBeVisible(obj)
249
if not obj:IsA("UIListLayout") and not obj:IsA("UICorner") and not obj:IsA("UIGradient") then
250
return true
251
else
252
return false
253
end
254
end
255
256
local BrickAdminGUI = Instance.new("ScreenGui")
257
local MainUI = Instance.new("Frame")
258
local UICorner = Instance.new("UICorner")
259
local CurrentExecutor = Instance.new("TextLabel")
260
local Username = Instance.new("TextLabel")
261
local TabsFrame = Instance.new("ScrollingFrame")
262
local HomeButton = Instance.new("ImageButton")
263
local TabsLayout = Instance.new("UIListLayout")
264
local ConsoleButton = Instance.new("ImageButton")
265
local SHButton = Instance.new("ImageButton")
266
local ChatButton = Instance.new("ImageButton")
267
local SettingsButton = Instance.new("ImageButton")
268
local ExtensionsButton = Instance.new("ImageButton")
269
local InfoFrame = Instance.new("ScrollingFrame")
270
local Extensions = Instance.new("TextLabel")
271
local News = Instance.new("TextLabel")
272
local NewsText = Instance.new("TextLabel")
273
local InfoLayout = Instance.new("UIListLayout")
274
local TitleThing = Instance.new("TextLabel")
275
local SHTab = Instance.new("Folder")
276
local SHFrame = Instance.new("ScrollingFrame")
277
local ScriptsLayout = Instance.new("UIListLayout")
278
local SaveScript = Instance.new("ImageButton")
279
local ScriptNameBox = Instance.new("TextBox")
280
local ScriptCodeBox = Instance.new("TextBox")
281
local AddScript = Instance.new("ImageButton")
282
local ConsoleTab = Instance.new("Folder")
283
local MessagesFrame = Instance.new("ScrollingFrame")
284
local MessagesLayout = Instance.new("UIListLayout")
285
local textBox = Instance.new("TextBox")
286
local ChatTab = Instance.new("Folder")
287
local DownloadCL = Instance.new("TextLabel")
288
local DownloadLogs = Instance.new("ImageButton")
289
local SendMsgToChat = Instance.new("TextBox")
290
local SettingsTab = Instance.new("Folder")
291
local SettingsFrame = Instance.new("ScrollingFrame")
292
local Setting1 = Instance.new("TextButton")
293
local SettingsLayout = Instance.new("UIListLayout")
294
local Setting2 = Instance.new("TextButton")
295
local Setting3 = Instance.new("TextButton")
296
local Setting4 = Instance.new("TextButton")
297
local Setting5 = Instance.new("TextButton")
298
local Setting6 = Instance.new("TextButton")
299
local Setting7 = Instance.new("TextButton")
300
local ExtensionsTab = Instance.new("Folder")
301
local ExtFrame = Instance.new("ScrollingFrame")
302
local ExtensionsLayout = Instance.new("UIListLayout")
303
local ExtensionsList = Instance.new("TextLabel")
304
305
local function visChildren(child)
306
for _, pp in ipairs(MainUI:GetDescendants()) do
307
if not (pp:IsA("UICorner") or pp:IsA("UIListLayout") or pp:IsA("Folder") or pp.Parent == TabsFrame or pp == TabsFrame or pp == Username or pp == CurrentExecutor or pp == TitleThing) then
308
pp.Visible = false
309
end
310
end
311
312
for _, pp in ipairs(child:GetDescendants()) do
313
if not (pp:IsA("UICorner") or pp:IsA("UIListLayout") or pp:IsA("Folder")) then
314
pp.Visible = true
315
end
316
end
317
end
318
local function makemsg(text, parent, time)
319
messageLabel = Instance.new("TextButton")
320
messageLabel.Size = UDim2.new(0, 105, 0, 35)
321
messageLabel.BackgroundTransparency = 1
322
messageLabel.Text = text
323
messageLabel.TextColor3 = Color3.fromRGB(255, 85, 85)
324
325
messageLabel.TextScaled = true
326
messageLabel.Font = Enum.Font.GothamBlack
327
messageLabel.TextTransparency = 0
328
messageLabel.TextWrapped = true
329
if not parent then
330
messageLabel.LayoutOrder = #MessagesFrame:GetChildren()
331
messageLabel.Parent = MessagesFrame
332
else
333
messageLabel.Parent = parent
334
messageLabel.LayoutOrder = #parent:GetChildren()
335
end
336
messageLabel.Name = "messageLabel"
337
messageLabel.MouseButton1Click:Connect(function()
338
setclipboard(tostring(text))
339
end)
340
if time then
341
task.wait(time)
342
messageLabel:Destroy()
343
end
344
end
345
if RP == "true" then
346
hookfunction(print, newcclosure(function(r)
347
makemsg(r)
348
end))
349
end
350
local function createScript(sn, data)
351
local scriptname = Instance.new("TextLabel")
352
local Execute = Instance.new("TextButton")
353
local Delete = Instance.new("TextButton")
354
scriptname.Name = "scriptname"..i
355
scriptname.Parent = SHFrame
356
scriptname.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
357
scriptname.BackgroundTransparency = 1.000
358
scriptname.BorderColor3 = Color3.fromRGB(0, 0, 0)
359
scriptname.BorderSizePixel = 0
360
scriptname.Position = UDim2.new(-0.145161286, 0, 0, 0)
361
scriptname.Size = UDim2.new(0, 123, 0, 50)
362
scriptname.Font = Enum.Font.GothamBlack
363
scriptname.Text = sn
364
scriptname.TextColor3 = Color3.fromRGB(85, 170, 255)
365
scriptname.TextScaled = true
366
scriptname.TextSize = 14.000
367
scriptname.TextWrapped = true
368
369
Execute.Name = "Execute"..i
370
Execute.Parent = scriptname
371
Execute.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
372
Execute.BackgroundTransparency = 1.000
373
Execute.BorderColor3 = Color3.fromRGB(0, 0, 0)
374
Execute.BorderSizePixel = 0
375
Execute.Position = UDim2.new(0, 0, 0.680000007, 0)
376
Execute.Size = UDim2.new(0, 51, 0, 44)
377
Execute.Font = Enum.Font.GothamBlack
378
Execute.Text = "Execute"
379
Execute.TextColor3 = Color3.fromRGB(85, 255, 85)
380
Execute.TextScaled = true
381
Execute.TextSize = 14.000
382
Execute.TextWrapped = true
383
384
Delete.Name = "Delete"..i
385
Delete.Parent = scriptname
386
Delete.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
387
Delete.BackgroundTransparency = 1.000
388
Delete.BorderColor3 = Color3.fromRGB(0, 0, 0)
389
Delete.BorderSizePixel = 0
390
Delete.Position = UDim2.new(0.536585331, 0, 0.680000007, 0)
391
Delete.Size = UDim2.new(0, 47, 0, 44)
392
Delete.Font = Enum.Font.GothamBlack
393
Delete.Text = "Delete"
394
Delete.TextColor3 = Color3.fromRGB(255, 85, 85)
395
Delete.TextScaled = true
396
Delete.TextSize = 14.000
397
Delete.TextWrapped = true
398
Execute.MouseButton1Click:Connect(function()
399
local success, result = pcall(function()
400
loadstring(data)()
401
end)
402
if not success then
403
print(result)
404
end
405
end)
406
407
Delete.MouseButton1Click:Connect(function()
408
scriptname:Destroy()
409
delfile(sn)
410
end)
411
412
i = i + 1
413
end
414
if isfile("BrickAdmin/Prefix") then
415
prefix = readfile("BrickAdmin/Prefix")
416
else
417
makemsg("Type in the textbox the prefix you want to use.", MessagesFrame)
418
end
419
420
BrickAdminGUI.Name = "BrickAdminGUI"
421
BrickAdminGUI.Parent = game:GetService("CoreGui")
422
BrickAdminGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
423
424
MainUI.Name = "MainUI"
425
MainUI.Parent = BrickAdminGUI
426
MainUI.BackgroundColor3 = Color3.fromRGB(69, 69, 69)
427
MainUI.BackgroundTransparency = 0.250
428
MainUI.BorderColor3 = Color3.fromRGB(0, 0, 0)
429
MainUI.BorderSizePixel = 0
430
MainUI.Position = UDim2.new(0.372222245, 0, 0.170504987, 0)
431
MainUI.Size = UDim2.new(0, 276, 0, 198)
432
MainUI.Draggable = true
433
MainUI.Active = true
434
435
UICorner.Parent = MainUI
436
437
CurrentExecutor.Name = "CurrentExecutor"
438
CurrentExecutor.Parent = MainUI
439
CurrentExecutor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
440
CurrentExecutor.BackgroundTransparency = 1.000
441
CurrentExecutor.BorderColor3 = Color3.fromRGB(0, 0, 0)
442
CurrentExecutor.BorderSizePixel = 0
443
CurrentExecutor.Position = UDim2.new(0.202898532, 0, 0.808080792, 0)
444
CurrentExecutor.Size = UDim2.new(0, 200, 0, 50)
445
CurrentExecutor.Font = Enum.Font.GothamBlack
446
CurrentExecutor.Text = identifyexecutor()
447
CurrentExecutor.TextColor3 = Color3.fromRGB(255, 85, 85)
448
CurrentExecutor.TextSize = 18.000
449
450
Username.Name = "Username"
451
Username.Parent = MainUI
452
Username.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
453
Username.BackgroundTransparency = 1.000
454
Username.BorderColor3 = Color3.fromRGB(0, 0, 0)
455
Username.BorderSizePixel = 0
456
Username.Position = UDim2.new(0.202898532, 0, 0, 0)
457
Username.Size = UDim2.new(0, 200, 0, 50)
458
Username.Font = Enum.Font.GothamBlack
459
Username.Text = player.Name
460
Username.TextColor3 = Color3.fromRGB(85, 85, 255)
461
Username.TextSize = 18.000
462
463
if plrnameshows == "false" then
464
Username.Visible = false
465
end
466
467
TabsFrame.Name = "TabsFrame"
468
TabsFrame.Parent = MainUI
469
TabsFrame.Active = true
470
TabsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
471
TabsFrame.BackgroundTransparency = 1.000
472
TabsFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
473
TabsFrame.BorderSizePixel = 0
474
TabsFrame.Size = UDim2.new(0, 63, 0, 198)
475
TabsFrame.CanvasSize = UDim2.new(0, 0, 1.29999995, 0)
476
TabsFrame.ScrollBarThickness = 0
477
478
HomeButton.Name = "HomeButton"
479
HomeButton.Parent = TabsFrame
480
HomeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
481
HomeButton.BackgroundTransparency = 1.000
482
HomeButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
483
HomeButton.BorderSizePixel = 0
484
HomeButton.Position = UDim2.new(-0.0476190485, 0, 0, 0)
485
HomeButton.Size = UDim2.new(0, 35, 0, 35)
486
HomeButton.Image = "rbxassetid://14110397923"
487
488
TabsLayout.Name = "TabsLayout"
489
TabsLayout.Parent = TabsFrame
490
TabsLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
491
TabsLayout.SortOrder = Enum.SortOrder.LayoutOrder
492
TabsLayout.Padding = UDim.new(0, 5)
493
494
ConsoleButton.Name = "ConsoleButton"
495
ConsoleButton.Parent = TabsFrame
496
ConsoleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
497
ConsoleButton.BackgroundTransparency = 1.000
498
ConsoleButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
499
ConsoleButton.BorderSizePixel = 0
500
ConsoleButton.Position = UDim2.new(-0.0476190485, 0, 0, 0)
501
ConsoleButton.Size = UDim2.new(0, 35, 0, 35)
502
ConsoleButton.Image = "rbxassetid://14110366051"
503
504
SHButton.Name = "SHButton"
505
SHButton.Parent = TabsFrame
506
SHButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
507
SHButton.BackgroundTransparency = 1.000
508
SHButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
509
SHButton.BorderSizePixel = 0
510
SHButton.Position = UDim2.new(-0.0476190485, 0, 0, 0)
511
SHButton.Size = UDim2.new(0, 35, 0, 35)
512
SHButton.Image = "rbxassetid://14110380767"
513
514
ChatButton.Name = "ChatButton"
515
ChatButton.Parent = TabsFrame
516
ChatButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
517
ChatButton.BackgroundTransparency = 1.000
518
ChatButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
519
ChatButton.BorderSizePixel = 0
520
ChatButton.Position = UDim2.new(-0.0476190485, 0, 0, 0)
521
ChatButton.Size = UDim2.new(0, 35, 0, 35)
522
ChatButton.Image = "rbxassetid://14111101229"
523
524
SettingsButton.Name = "SettingsButton"
525
SettingsButton.Parent = TabsFrame
526
SettingsButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
527
SettingsButton.BackgroundTransparency = 1.000
528
SettingsButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
529
SettingsButton.BorderSizePixel = 0
530
SettingsButton.Position = UDim2.new(-0.0476190485, 0, 0, 0)
531
SettingsButton.Size = UDim2.new(0, 35, 0, 35)
532
SettingsButton.Image = "rbxassetid://14111098899"
533
534
ExtensionsButton.Name = "ExtensionsButton"
535
ExtensionsButton.Parent = TabsFrame
536
ExtensionsButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
537
ExtensionsButton.BackgroundTransparency = 1.000
538
ExtensionsButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
539
ExtensionsButton.BorderSizePixel = 0
540
ExtensionsButton.Position = UDim2.new(-0.0476190485, 0, 0, 0)
541
ExtensionsButton.Size = UDim2.new(0, 35, 0, 35)
542
ExtensionsButton.Image = "http://www.roblox.com/asset/?id=8898417863"
543
544
InfoFrame.Name = "InfoFrame"
545
InfoFrame.Parent = MainUI
546
InfoFrame.Active = true
547
InfoFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
548
InfoFrame.BackgroundTransparency = 1.000
549
InfoFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
550
InfoFrame.BorderSizePixel = 0
551
InfoFrame.Position = UDim2.new(0.239130422, 0, 0.186868683, 0)
552
InfoFrame.Size = UDim2.new(0, 160, 0, 122)
553
InfoFrame.CanvasPosition = Vector2.new(0, 0)
554
InfoFrame.CanvasSize = UDim2.new(0, 0, 2, 0)
555
InfoFrame.ScrollBarThickness = 7
556
InfoFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
557
558
Extensions.Name = "Extensions"
559
Extensions.Parent = InfoFrame
560
Extensions.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
561
Extensions.BackgroundTransparency = 1.000
562
Extensions.BorderColor3 = Color3.fromRGB(0, 0, 0)
563
Extensions.BorderSizePixel = 0
564
Extensions.Position = UDim2.new(0.0701086968, 0, 0, 0)
565
Extensions.Size = UDim2.new(0, 136, 0, 50)
566
Extensions.Font = Enum.Font.GothamBlack
567
if extensions == 0 then
568
Extensions.Text = "Installed Extensions: none"
569
else
570
Extensions.Text = "Installed Extensions: "..extensions
571
end
572
Extensions.TextColor3 = Color3.fromRGB(85, 85, 255)
573
Extensions.TextScaled = true
574
Extensions.TextSize = 1.000
575
Extensions.TextWrapped = true
576
577
if IES == "false" then
578
Extensions.Visible = false
579
end
580
581
News.Name = "News"
582
News.Parent = InfoFrame
583
News.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
584
News.BackgroundTransparency = 1.000
585
News.BorderColor3 = Color3.fromRGB(0, 0, 0)
586
News.BorderSizePixel = 0
587
News.Position = UDim2.new(-0.125, 0, 0.409836054, 0)
588
News.Size = UDim2.new(0, 200, 0, 23)
589
News.Font = Enum.Font.GothamBlack
590
News.Text = "--News--"
591
News.TextColor3 = Color3.fromRGB(255, 85, 85)
592
News.TextSize = 18.000
593
594
NewsText.Name = "NewsText"
595
NewsText.Parent = InfoFrame
596
NewsText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
597
NewsText.BackgroundTransparency = 1.000
598
NewsText.BorderColor3 = Color3.fromRGB(0, 0, 0)
599
NewsText.BorderSizePixel = 0
600
NewsText.Position = UDim2.new(0.0281249993, 0, 0.462295294, 0)
601
NewsText.Size = UDim2.new(0, 151, 0, 75)
602
NewsText.Font = Enum.Font.GothamBlack
603
NewsText.Text = "13/9/2023: Added 'from clipboard in scripthub (Press Z to paste code into it.)', press Z to execute from clipboard ."
604
NewsText.TextColor3 = Color3.fromRGB(255, 85, 85)
605
NewsText.TextScaled = true
606
NewsText.TextSize = 18.000
607
NewsText.TextWrapped = true
608
609
if news == "false" then
610
NewsText.Visible = false
611
News.Visible = false
612
end
613
InfoLayout.Name = "InfoLayout"
614
InfoLayout.Parent = InfoFrame
615
InfoLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
616
InfoLayout.SortOrder = Enum.SortOrder.LayoutOrder
617
618
TitleThing.Name = "TitleThing"
619
TitleThing.Parent = MainUI
620
TitleThing.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
621
TitleThing.BackgroundTransparency = 1.000
622
TitleThing.BorderColor3 = Color3.fromRGB(0, 0, 0)
623
TitleThing.BorderSizePixel = 0
624
TitleThing.Position = UDim2.new(0.579710126, 0, 0.353535354, 0)
625
TitleThing.Rotation = 90.000
626
TitleThing.Size = UDim2.new(0, 184, 0, 50)
627
TitleThing.Font = Enum.Font.GothamBlack
628
TitleThing.Text = "{ Brick Admin }"
629
TitleThing.TextColor3 = Color3.fromRGB(170, 85, 127)
630
TitleThing.TextScaled = true
631
TitleThing.TextSize = 14.000
632
TitleThing.TextWrapped = true
633
634
SHTab.Name = "SHTab"
635
SHTab.Parent = MainUI
636
637
SHFrame.Name = "SHFrame"
638
SHFrame.Parent = SHTab
639
SHFrame.Active = true
640
SHFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
641
SHFrame.BackgroundTransparency = 1.000
642
SHFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
643
SHFrame.BorderSizePixel = 0
644
SHFrame.Position = UDim2.new(0.282608688, 0, 0.202020198, 0)
645
SHFrame.Size = UDim2.new(0, 155, 0, 101)
646
SHFrame.Visible = false
647
SHFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
648
649
ScriptsLayout.Name = "ScriptsLayout"
650
ScriptsLayout.Parent = SHFrame
651
ScriptsLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
652
ScriptsLayout.SortOrder = Enum.SortOrder.LayoutOrder
653
654
SaveScript.Name = "SaveScript"
655
SaveScript.Parent = SHTab
656
SaveScript.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
657
SaveScript.BackgroundTransparency = 1.000
658
SaveScript.BorderColor3 = Color3.fromRGB(0, 0, 0)
659
SaveScript.BorderSizePixel = 0
660
SaveScript.Position = UDim2.new(0.5, 0, 0.74747473, 0)
661
SaveScript.Size = UDim2.new(0, 35, 0, 35)
662
SaveScript.Visible = false
663
SaveScript.Image = "rbxassetid://11419719540"
664
665
ScriptNameBox.Name = "ScriptNameBox"
666
ScriptNameBox.Parent = SHTab
667
ScriptNameBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
668
ScriptNameBox.BackgroundTransparency = 1.000
669
ScriptNameBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
670
ScriptNameBox.BorderSizePixel = 0
671
ScriptNameBox.Position = UDim2.new(0.318840593, 0, 0.202020198, 0)
672
ScriptNameBox.Size = UDim2.new(0, 138, 0, 35)
673
ScriptNameBox.Visible = false
674
ScriptNameBox.Font = Enum.Font.GothamBlack
675
ScriptNameBox.PlaceholderText = "Script name"
676
ScriptNameBox.Text = ""
677
ScriptNameBox.TextColor3 = Color3.fromRGB(0, 0, 0)
678
ScriptNameBox.TextScaled = true
679
ScriptNameBox.TextSize = 14.000
680
ScriptNameBox.TextWrapped = true
681
682
ScriptCodeBox.Name = "ScriptCodeBox"
683
ScriptCodeBox.Parent = SHTab
684
ScriptCodeBox.BackgroundColor3 = Color3.fromRGB(79, 82, 86)
685
ScriptCodeBox.BackgroundTransparency = 0.770
686
ScriptCodeBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
687
ScriptCodeBox.BorderSizePixel = 4
688
ScriptCodeBox.Position = UDim2.new(0.311594218, 0, 0.378787875, 0)
689
ScriptCodeBox.Size = UDim2.new(0, 138, 0, 73)
690
ScriptCodeBox.Visible = false
691
ScriptCodeBox.Font = Enum.Font.GothamBlack
692
ScriptCodeBox.PlaceholderText = "--[[ Code \nPress Z to paste from clipboard.]]"
693
ScriptCodeBox.Text = ""
694
ScriptCodeBox.TextColor3 = Color3.fromRGB(0, 0, 0)
695
ScriptCodeBox.TextSize = 18.000
696
ScriptCodeBox.TextWrapped = true
697
698
AddScript.Name = "AddScript"
699
AddScript.Parent = SHTab
700
AddScript.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
701
AddScript.BackgroundTransparency = 1.000
702
AddScript.BorderColor3 = Color3.fromRGB(0, 0, 0)
703
AddScript.BorderSizePixel = 0
704
AddScript.Position = UDim2.new(0.5, 0, 0.661616147, 0)
705
AddScript.Size = UDim2.new(0, 35, 0, 35)
706
AddScript.Visible = false
707
AddScript.Image = "rbxassetid://11422150241"
708
709
ConsoleTab.Name = "ConsoleTab"
710
ConsoleTab.Parent = MainUI
711
712
MessagesFrame.Name = "MessagesFrame"
713
MessagesFrame.Parent = ConsoleTab
714
MessagesFrame.Active = true
715
MessagesFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
716
MessagesFrame.BackgroundTransparency = 1.000
717
MessagesFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
718
MessagesFrame.BorderSizePixel = 0
719
MessagesFrame.Position = UDim2.new(0.271739125, 0, 0.202020198, 0)
720
MessagesFrame.Size = UDim2.new(0, 161, 0, 120)
721
MessagesFrame.Visible = false
722
MessagesFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
723
724
MessagesLayout.Name = "MessagesLayout"
725
MessagesLayout.Parent = MessagesFrame
726
MessagesLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
727
MessagesLayout.SortOrder = Enum.SortOrder.LayoutOrder
728
729
textBox.Name = "textBox"
730
textBox.Parent = ConsoleTab
731
textBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
732
textBox.BackgroundTransparency = 1.000
733
textBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
734
textBox.BorderSizePixel = 0
735
textBox.Position = UDim2.new(0.202898547, 0, 0.636363626, 0)
736
textBox.Size = UDim2.new(0, 200, 0, 44)
737
textBox.Visible = false
738
textBox.Font = Enum.Font.GothamBlack
739
textBox.PlaceholderText = "Type something.."
740
textBox.Text = ""
741
textBox.TextColor3 = Color3.fromRGB(66, 156, 227)
742
textBox.TextSize = 14.000
743
textBox.ZIndex = 100
744
745
ChatTab.Name = "ChatTab"
746
ChatTab.Parent = MainUI
747
748
DownloadCL.Name = "DownloadCL"
749
DownloadCL.Parent = ChatTab
750
DownloadCL.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
751
DownloadCL.BackgroundTransparency = 1.000
752
DownloadCL.BorderColor3 = Color3.fromRGB(0, 0, 0)
753
DownloadCL.BorderSizePixel = 0
754
DownloadCL.Position = UDim2.new(0.282608688, 0, 0.202020198, 0)
755
DownloadCL.Size = UDim2.new(0, 156, 0, 26)
756
DownloadCL.Visible = false
757
DownloadCL.Font = Enum.Font.GothamBlack
758
DownloadCL.Text = "Download Chatlogs"
759
DownloadCL.TextColor3 = Color3.fromRGB(85, 255, 127)
760
DownloadCL.TextScaled = true
761
DownloadCL.TextSize = 14.000
762
DownloadCL.TextWrapped = true
763
764
DownloadLogs.Name = "DownloadLogs"
765
DownloadLogs.Parent = ChatTab
766
DownloadLogs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
767
DownloadLogs.BackgroundTransparency = 1.000
768
DownloadLogs.BorderColor3 = Color3.fromRGB(0, 0, 0)
769
DownloadLogs.BorderSizePixel = 0
770
DownloadLogs.Position = UDim2.new(0.474637687, 0, 0.333333343, 0)
771
DownloadLogs.Size = UDim2.new(0, 42, 0, 42)
772
DownloadLogs.Visible = false
773
DownloadLogs.Image = "http://www.roblox.com/asset/?id=14111103905"
774
775
SendMsgToChat.Name = "SendMsgToChat"
776
SendMsgToChat.Parent = ChatTab
777
SendMsgToChat.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
778
SendMsgToChat.BackgroundTransparency = 1.000
779
SendMsgToChat.BorderColor3 = Color3.fromRGB(0, 0, 0)
780
SendMsgToChat.BorderSizePixel = 0
781
SendMsgToChat.Position = UDim2.new(0.282608688, 0, 0.555555582, 0)
782
SendMsgToChat.Size = UDim2.new(0, 156, 0, 50)
783
SendMsgToChat.Visible = false
784
SendMsgToChat.Font = Enum.Font.GothamBlack
785
SendMsgToChat.PlaceholderText = "Send something.."
786
SendMsgToChat.Text = ""
787
SendMsgToChat.TextColor3 = Color3.fromRGB(255, 85, 127)
788
SendMsgToChat.TextSize = 14.000
789
SendMsgToChat.TextWrapped = true
790
SendMsgToChat.ClearTextOnFocus = false
791
792
SettingsTab.Name = "SettingsTab"
793
SettingsTab.Parent = MainUI
794
795
SettingsFrame.Name = "SettingsFrame"
796
SettingsFrame.Parent = SettingsTab
797
SettingsFrame.Active = true
798
SettingsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
799
SettingsFrame.BackgroundTransparency = 1.000
800
SettingsFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
801
SettingsFrame.BorderSizePixel = 0
802
SettingsFrame.Position = UDim2.new(0.271739125, 0, 0.202020198, 0)
803
SettingsFrame.Size = UDim2.new(0, 157, 0, 120)
804
SettingsFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
805
806
Setting1.Name = "Setting1"
807
Setting1.Parent = SettingsFrame
808
Setting1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
809
Setting1.BackgroundTransparency = 1.000
810
Setting1.BorderColor3 = Color3.fromRGB(0, 0, 0)
811
Setting1.BorderSizePixel = 0
812
Setting1.Position = UDim2.new(-2.52211379e-07, 0, 0, 0)
813
Setting1.Size = UDim2.new(0, 110, 0, 50)
814
Setting1.Visible = false
815
Setting1.Font = Enum.Font.GothamBlack
816
Setting1.Text = "News show in home: "..tostring(news)
817
Setting1.TextColor3 = Color3.fromRGB(85, 170, 255)
818
Setting1.TextScaled = true
819
Setting1.TextSize = 14.000
820
Setting1.TextWrapped = true
821
822
SettingsLayout.Name = "SettingsLayout"
823
SettingsLayout.Parent = SettingsFrame
824
SettingsLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
825
SettingsLayout.SortOrder = Enum.SortOrder.LayoutOrder
826
827
Setting2.Name = "Setting2"
828
Setting2.Parent = SettingsFrame
829
Setting2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
830
Setting2.BackgroundTransparency = 1.000
831
Setting2.BorderColor3 = Color3.fromRGB(0, 0, 0)
832
Setting2.BorderSizePixel = 0
833
Setting2.Position = UDim2.new(-2.52211379e-07, 0, 0, 0)
834
Setting2.Size = UDim2.new(0, 110, 0, 50)
835
Setting2.Visible = false
836
Setting2.Font = Enum.Font.GothamBlack
837
Setting2.Text = "Installed Extensions show in home: "..tostring(IES)
838
Setting2.TextColor3 = Color3.fromRGB(85, 170, 255)
839
Setting2.TextScaled = true
840
Setting2.TextSize = 14.000
841
Setting2.TextWrapped = true
842
843
Setting3.Name = "Setting3"
844
Setting3.Parent = SettingsFrame
845
Setting3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
846
Setting3.BackgroundTransparency = 1.000
847
Setting3.BorderColor3 = Color3.fromRGB(0, 0, 0)
848
Setting3.BorderSizePixel = 0
849
Setting3.Position = UDim2.new(-2.52211379e-07, 0, 0, 0)
850
Setting3.Size = UDim2.new(0, 110, 0, 50)
851
Setting3.Visible = false
852
Setting3.Font = Enum.Font.GothamBlack
853
Setting3.Text = "Player name shows: "..tostring(plrnameshows)
854
Setting3.TextColor3 = Color3.fromRGB(85, 170, 255)
855
Setting3.TextScaled = true
856
Setting3.TextSize = 14.000
857
Setting3.TextWrapped = true
858
859
Setting4.Name = "Setting4"
860
Setting4.Parent = SettingsFrame
861
Setting4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
862
Setting4.BackgroundTransparency = 1.000
863
Setting4.BorderColor3 = Color3.fromRGB(0, 0, 0)
864
Setting4.BorderSizePixel = 0
865
Setting4.Position = UDim2.new(-2.52211379e-07, 0, 0, 0)
866
Setting4.Size = UDim2.new(0, 110, 0, 50)
867
Setting4.Visible = false
868
Setting4.Font = Enum.Font.GothamBlack
869
Setting4.Text = "Save Run File: "..tostring(SRF)
870
Setting4.TextColor3 = Color3.fromRGB(85, 170, 255)
871
Setting4.TextScaled = true
872
Setting4.TextSize = 14.000
873
Setting4.TextWrapped = true
874
875
Setting5.Name = "Setting5"
876
Setting5.Parent = SettingsFrame
877
Setting5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
878
Setting5.BackgroundTransparency = 1.000
879
Setting5.BorderColor3 = Color3.fromRGB(0, 0, 0)
880
Setting5.BorderSizePixel = 0
881
Setting5.Position = UDim2.new(-2.52211379e-07, 0, 0, 0)
882
Setting5.Size = UDim2.new(0, 110, 0, 50)
883
Setting5.Visible = false
884
Setting5.Font = Enum.Font.GothamBlack
885
Setting5.Text = "Antivoid: "..tostring(AV)
886
Setting5.TextColor3 = Color3.fromRGB(85, 170, 255)
887
Setting5.TextScaled = true
888
Setting5.TextSize = 14.000
889
Setting5.TextWrapped = true
890
891
Setting6.Name = "Setting6"
892
Setting6.Parent = SettingsFrame
893
Setting6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
894
Setting6.BackgroundTransparency = 1.000
895
Setting6.BorderColor3 = Color3.fromRGB(0, 0, 0)
896
Setting6.BorderSizePixel = 0
897
Setting6.Position = UDim2.new(-2.52211379e-07, 0, 0, 0)
898
Setting6.Size = UDim2.new(0, 110, 0, 50)
899
Setting6.Visible = false
900
Setting6.Font = Enum.Font.GothamBlack
901
Setting6.Text = "Make print() show messages in main tab: "..tostring(RP)
902
Setting6.TextColor3 = Color3.fromRGB(85, 170, 255)
903
Setting6.TextScaled = true
904
Setting6.TextSize = 14.000
905
Setting6.TextWrapped = true
906
907
Setting7.Name = "Setting7"
908
Setting7.Parent = SettingsFrame
909
Setting7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
910
Setting7.BackgroundTransparency = 1.000
911
Setting7.BorderColor3 = Color3.fromRGB(0, 0, 0)
912
Setting7.BorderSizePixel = 0
913
Setting7.Position = UDim2.new(-2.52211379e-07, 0, 0, 0)
914
Setting7.Size = UDim2.new(0, 110, 0, 50)
915
Setting7.Visible = false
916
Setting7.Font = Enum.Font.GothamBlack
917
Setting7.Text = "Antikick: "..tostring(AK)
918
Setting7.TextColor3 = Color3.fromRGB(85, 170, 255)
919
Setting7.TextScaled = true
920
Setting7.TextSize = 14.000
921
Setting7.TextWrapped = true
922
923
ExtensionsTab.Name = "ExtensionsTab"
924
ExtensionsTab.Parent = MainUI
925
926
ExtFrame.Name = "ExtFrame"
927
ExtFrame.Parent = ExtensionsTab
928
ExtFrame.Active = true
929
ExtFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
930
ExtFrame.BackgroundTransparency = 1.000
931
ExtFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
932
ExtFrame.BorderSizePixel = 0
933
ExtFrame.Position = UDim2.new(0.300724536, 0, 0.202020198, 0)
934
ExtFrame.Size = UDim2.new(0, 146, 0, 120)
935
ExtFrame.Visible = false
936
ExtFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
937
938
ExtensionsLayout.Name = "ExtensionsLayout"
939
ExtensionsLayout.Parent = ExtFrame
940
ExtensionsLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
941
ExtensionsLayout.SortOrder = Enum.SortOrder.LayoutOrder
942
943
ExtensionsList.Name = "ExtensionsList"
944
ExtensionsList.Parent = ExtFrame
945
ExtensionsList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
946
ExtensionsList.BackgroundTransparency = 1.000
947
ExtensionsList.BorderColor3 = Color3.fromRGB(0, 0, 0)
948
ExtensionsList.BorderSizePixel = 0
949
ExtensionsList.Position = UDim2.new(0.0376712345, 0, 0, 0)
950
ExtensionsList.Size = UDim2.new(0, 127, 0, 24)
951
ExtensionsList.Visible = false
952
ExtensionsList.Font = Enum.Font.GothamBlack
953
ExtensionsList.Text = "Installed Extensions: "
954
ExtensionsList.TextColor3 = Color3.fromRGB(255, 85, 85)
955
ExtensionsList.TextScaled = true
956
ExtensionsList.TextSize = 14.000
957
ExtensionsList.TextWrapped = true
958
959
960
ConsoleButton.MouseButton1Click:Connect(function()
961
visChildren(ConsoleTab)
962
end)
963
ChatButton.MouseButton1Click:Connect(function()
964
visChildren(ChatTab)
965
end)
966
SettingsButton.MouseButton1Click:Connect(function()
967
visChildren(SettingsTab)
968
end)
969
ExtensionsButton.MouseButton1Click:Connect(function()
970
visChildren(ExtensionsTab)
971
end)
972
SHButton.MouseButton1Click:Connect(function()
973
visChildren(SHTab)
974
ScriptCodeBox.Visible = false
975
ScriptNameBox.Visible = false
976
SaveScript.Visible = false
977
end)
978
HomeButton.MouseButton1Click:Connect(function()
979
visChildren(InfoFrame)
980
InfoFrame.Visible = true
981
end)
982
AddScript.MouseButton1Click:Connect(function()
983
for _, txt in ipairs(SHFrame:GetDescendants()) do
984
if txt:IsA("TextLabel") or txt:IsA("TextButton") then
985
txt.Visible = false
986
end
987
end
988
ScriptCodeBox.Visible = true
989
ScriptNameBox.Visible = true
990
SaveScript.Visible = true
991
SHFrame.Visible = false
992
AddScript.Visible = false
993
end)
994
SaveScript.MouseButton1Click:Connect(function()
995
if ScriptCodeBox.Text and ScriptNameBox.Text ~= "" then
996
local path = "BrickAdmin/Scripts/"..ScriptNameBox.Text
997
createScript("BrickAdmin/Scripts/"..ScriptNameBox.Text, ScriptCodeBox.Text)
998
writefile(path, ScriptCodeBox.Text)
999
end
1000
visChildren(SHTab)
1001
ScriptCodeBox.Visible = false
1002
ScriptNameBox.Visible = false
1003
SaveScript.Visible = false
1004
end)
1005
if isfolder("BrickAdmin/Scripts") then
1006
local files = listfiles("BrickAdmin/Scripts")
1007
1008
if files ~= nil then
1009
for _, file in ipairs(files) do
1010
createScript(file:gsub("BrickAdmin/Scripts\\", "Scripts/"), readfile(file))
1011
end
1012
end
1013
end
1014
1015
SendMsgToChat.FocusLost:Connect(function()
1016
if chatMethod == 1 then
1017
rp.DefaultChatSystemEvents.SayMessageRequest:FireServer(SendMsgToChat.Text, "All")
1018
elseif chatMethod == 2 then
1019
TextChatService.TextChannels.RBXGeneral:SendAsync(SendMsgToChat.Text)
1020
end
1021
SendMsgToChat.Text = ""
1022
end)
1023
1024
local function getGameInfo()
1025
local success, result = pcall(function()
1026
return "Game: "..MarketplaceService:GetProductInfo(game.PlaceId).Name.."\nDescription: {{\n"..MarketplaceService:GetProductInfo(game.PlaceId).Description.."\n}}"
1027
end)
1028
1029
if success then
1030
return result
1031
else
1032
warn("Failed to retrieve game name:", result)
1033
return "Unknown"
1034
end
1035
end
1036
if chatMethod == 1 then
1037
chatMethodString = "Default Chat"
1038
elseif chatMethod == 2 then
1039
chatMethodString = "TextChatService Chat"
1040
end
1041
local runInfo = "[[Running Info]]\nExecutor: "..identifyexecutor().."\nGame ID: "..game.PlaceId.."\nGame JobID: "..game.JobId.."\n"..getGameInfo().."\nGame uses "..chatMethodString.."\n"..dat.."\n"
1042
for _, file in ipairs(listfiles("BrickAdmin/Runs")) do
1043
i+=1
1044
end
1045
local path = "BrickAdmin/Runs/"..MarketplaceService:GetProductInfo(game.PlaceId).Name.."#"..i
1046
if SRF == "true" then
1047
print(runInfo)
1048
writefile(path..".txt", runInfo)
1049
end
1050
local extensions = 0
1051
if isfolder("BrickAdmin/Extensions") then
1052
local files = listfiles("BrickAdmin/Extensions")
1053
1054
if files ~= nil and files ~= "" then
1055
for _, file in ipairs(files) do
1056
if isfile(file) then
1057
local content = readfile(file)
1058
if content ~= nil then
1059
sc, result = pcall(function()
1060
loadstring(content)()
1061
extensions+=1
1062
ExtensionsList.Text = ExtensionsList.Text..tostring(file:gsub("BrickAdmin/Extensions\\", "Extensions/")).." "
1063
end)
1064
if not sc then
1065
local filename = file:gsub("BrickAdmin/Extensions\\", "")
1066
local errorspa = "BrickAdmin/ExtensionErrors/"..filename
1067
writefile(errorspa, tostring(result))
1068
warn("Brick Admin Extension "..filename.." Failed to load, Saved Error message in BrickAdmin/ExtensionErrors.")
1069
end
1070
end
1071
end
1072
end
1073
end
1074
end
1075
makemsg("Brick Admin loaded in { " .. string.format("%.3f", tick() - startuptime) .. "s } with { " .. extensions .. " } installed extensions.", MessagesFrame)
1076
if prefix ~= nil then
1077
makemsg("You are using the prefix ["..prefix.."]")
1078
else
1079
makemsg("Prefix is NIL.")
1080
end
1081
1082
Setting1.MouseButton1Click:Connect(function()
1083
if Setting1.Text:find("true") then
1084
writefile("BrickAdmin/Settings/News", tostring(false))
1085
Setting1.Text = Setting1.Text:gsub("true", "false")
1086
elseif Setting1.Text:find("false") then
1087
writefile("BrickAdmin/Settings/News", tostring(true))
1088
Setting1.Text = Setting1.Text:gsub("false", "true")
1089
end
1090
end)
1091
Setting2.MouseButton1Click:Connect(function()
1092
if Setting2.Text:find("true") then
1093
writefile("BrickAdmin/Settings/Ext", tostring(false))
1094
Setting2.Text = Setting2.Text:gsub("true", "false")
1095
elseif Setting2.Text:find("false") then
1096
writefile("BrickAdmin/Settings/Ext", tostring(true))
1097
Setting2.Text = Setting2.Text:gsub("false", "true")
1098
end
1099
end)
1100
Setting3.MouseButton1Click:Connect(function()
1101
if Setting3.Text:find("true") then
1102
writefile("BrickAdmin/Settings/Plr", tostring(false))
1103
Setting3.Text = Setting3.Text:gsub("true", "false")
1104
elseif Setting3.Text:find("false") then
1105
writefile("BrickAdmin/Settings/Plr", tostring(true))
1106
Setting3.Text = Setting3.Text:gsub("false", "true")
1107
end
1108
end)
1109
Setting4.MouseButton1Click:Connect(function()
1110
if Setting4.Text:find("true") then
1111
writefile("BrickAdmin/Settings/SRF", tostring(false))
1112
Setting4.Text = Setting4.Text:gsub("true", "false")
1113
elseif Setting4.Text:find("false") then
1114
writefile("BrickAdmin/Settings/SRF", tostring(true))
1115
Setting4.Text = Setting4.Text:gsub("false", "true")
1116
end
1117
end)
1118
Setting5.MouseButton1Click:Connect(function()
1119
if Setting5.Text:find("true") then
1120
writefile("BrickAdmin/Settings/AV", tostring(false))
1121
Setting5.Text = Setting5.Text:gsub("true", "false")
1122
AV = "false"
1123
elseif Setting5.Text:find("false") then
1124
writefile("BrickAdmin/Settings/AV", tostring(true))
1125
Setting5.Text = Setting5.Text:gsub("false", "true")
1126
AV = "true"
1127
end
1128
antiVoid(AV)
1129
end)
1130
Setting6.MouseButton1Click:Connect(function()
1131
if Setting6.Text:find("true") then
1132
writefile("BrickAdmin/Settings/RP", tostring(false))
1133
RP = "false"
1134
Setting6.Text = Setting6.Text:gsub("true", "false")
1135
elseif Setting6.Text:find("false") then
1136
writefile("BrickAdmin/Settings/RP", tostring(true))
1137
Setting6.Text = Setting6.Text:gsub("false", "true")
1138
RP = "true"
1139
end
1140
end)
1141
Setting7.MouseButton1Click:Connect(function()
1142
if Setting7.Text:find("true") then
1143
writefile("BrickAdmin/Settings/Antikick", tostring(false))
1144
Setting7.Text = Setting7.Text:gsub("true", "false")
1145
getgenv().BlockKicks = false
1146
elseif Setting7.Text:find("false") then
1147
writefile("BrickAdmin/Settings/Antikick", tostring(true))
1148
Setting7.Text = Setting7.Text:gsub("false", "true")
1149
getgenv().BlockKicks = true
1150
end
1151
end)
1152
local function logChat()
1153
if chatMethod == 1 then
1154
clientEvent:Connect(function(msg)
1155
chatlog = chatlog .. "Message #"..xz.."\n"..msg.FromSpeaker .. ": " .. msg.Message .. "\n"
1156
xz+=1
1157
end)
1158
1159
elseif chatMethod == 2 then
1160
1161
msgrec:Connect(function(msg)
1162
chatlog = chatlog .. "Message #"..xz.."\n"..msg.TextSource.Name .. ": " .. msg.Text .. "\n"
1163
xz+=1
1164
end)
1165
end
1166
end
1167
logChat()
1168
DownloadLogs.MouseButton1Click:Connect(function()
1169
if not isfolder("BrickAdmin/Chatlogs") then makefolder("BrickAdmin/Chatlogs") else
1170
for _, file in ipairs(listfiles("BrickAdmin/Chatlogs")) do
1171
i+=1
1172
end
1173
local base = "Base"
1174
local cl = "BrickAdmin/Chatlogs/"..base.."×"..i..".txt"
1175
chatlog = "Total of "..xz.." Messages\n"..chatlog
1176
writefile(cl, chatlog)
1177
end
1178
end)
1179
textBox.FocusLost:Connect(function()
1180
local text = textBox.Text
1181
textBox.Text = ""
1182
if text ~= "" then
1183
makemsg(text, MessagesFrame)
1184
end
1185
if not prefix and text ~= " " or not text == "" then
1186
prefix = text
1187
writefile("BrickAdmin/Prefix", prefix)
1188
elseif not prefix and text == ("" or " ") then
1189
makemsg("You cant set your prefix to a space or nothing.", MessagesFrame)
1190
end
1191
if text == prefix.."destroy" then
1192
BrickAdminGUI:Destroy()
1193
elseif text == prefix.."clear" then
1194
task.wait()
1195
local cleared = -1
1196
for _, gggg in ipairs(MessagesFrame:GetDescendants()) do
1197
if gggg:IsA("TextButton") then
1198
gggg:Destroy()
1199
cleared+=1
1200
end
1201
end
1202
makemsg("Cleared {"..cleared.."} messages.", MessagesFrame, 3)
1203
elseif text:sub(1, 8 + #prefix - 1):lower() == prefix.."findplr" then
1204
makemsg(tostring(findPlayer(text:sub(10 + #prefix - 1))), MessagesFrame)
1205
elseif text:sub(1, 5 + #prefix - 1):lower() == prefix.."void" then
1206
if text:sub(7 + #prefix - 1) == "" or text:sub(7 + #prefix - 1) == nil then
1207
time = 3
1208
end
1209
local time = tonumber(text:sub(7 + #prefix - 1))
1210
if AV == "true" then
1211
AV = "false"
1212
avd = true
1213
antiVoid(AV)
1214
end
1215
GetService("Workspace").FallenPartsDestroyHeight = -math.huge
1216
currentSpot = player.Character:WaitForChild("HumanoidRootPart").CFrame
1217
player.Character:WaitForChild("HumanoidRootPart").CFrame = CFrame.new(0, -150, 0)
1218
task.wait(time)
1219
player.Character:WaitForChild("HumanoidRootPart").CFrame = currentSpot
1220
if avd then
1221
AV = "true"
1222
avd = nil
1223
antiVoid(AV)
1224
end
1225
elseif text:sub(1, 9 + #prefix - 1):lower() == prefix.."safevoid" then
1226
if text:sub(11 + #prefix - 1) == "" or text:sub(11 + #prefix - 1) == nil then
1227
time = 3
1228
end
1229
local time = tonumber(text:sub(11 + #prefix - 1))
1230
if AV == "true" then
1231
AV = "false"
1232
avd = true
1233
antiVoid(AV)
1234
end
1235
GetService("Workspace").FallenPartsDestroyHeight = -math.huge
1236
currentSpot = player.Character:WaitForChild("HumanoidRootPart").CFrame
1237
player.Character:WaitForChild("HumanoidRootPart").CFrame = CFrame.new(0, -150, 0)
1238
local part = Instance.new("Part")
1239
part.Parent = Workspace
1240
part.Size = Vector3.new(10, 10, 10)
1241
part.CFrame = rootpart.CFrame - Vector3.new(0, 15, 0)
1242
part.Anchored = true
1243
task.wait(time)
1244
player.Character:WaitForChild("HumanoidRootPart").CFrame = currentSpot
1245
if avd then
1246
AV = "true"
1247
avd = nil
1248
antiVoid(AV)
1249
end
1250
part:Destroy()
1251
elseif text:sub(1, 7 + #prefix - 1):lower() == prefix.."prefix" then
1252
if text:sub(9) ~= "" or text:sub(9) ~= " " then
1253
local prevprf = prefix
1254
prefix = text:sub(9, 9)
1255
writefile("BrickAdmin/Prefix", prefix)
1256
makemsg("Changed prefix from {"..prevprf.."} to {"..prefix.."}")
1257
end
1258
elseif text:sub(1, 6 + #prefix - 1):lower() == prefix.."re" then
1259
currentSpot = player.Character:WaitForChild("HumanoidRootPart").CFrame
1260
if player.Character:FindFirstChild("Humanoid") then
1261
player.Character.Humanoid.Health = 0
1262
player.CharacterAdded:Connect(function()
1263
player.Character:WaitForChild("HumanoidRootPart").CFrame = currentSpot
1264
end)
1265
end
1266
elseif text:sub(1, 5 + #prefix - 1) == prefix.."tpto" then
1267
local lgg = text:sub(7 + #prefix - 1)
1268
local plr = findPlayer(lgg)
1269
if lgg ~= "" and plr ~= nil then
1270
rootpart.CFrame = plr["Character"]:WaitForChild("HumanoidRootPart").CFrame
1271
end
1272
elseif text:sub(1, 7 + #prefix - 1) == prefix.."walkto" then
1273
local lgg = text:sub(9 + #prefix - 1)
1274
local plr = findPlayer(lgg)
1275
if lgg ~= "" and plr ~= nil and plr["Character"]["HumanoidRootPart"] then
1276
humanoid.WalkToPoint = Vector3.new(plr["Character"]["HumanoidRootPart"].CFrame.X,plr["Character"]["HumanoidRootPart"].CFrame.Y,plr["Character"]["HumanoidRootPart"].CFrame.Z)
1277
end
1278
elseif text:sub(1, 7 + #prefix - 1) == prefix.."looptp" then
1279
isTp = not isTp
1280
local lgg = text:sub(9 + #prefix - 1)
1281
local plr = findPlayer(lgg)
1282
if lgg ~= "" and plr ~= nil then
1283
while isTp and task.wait() do
1284
rootpart.CFrame = plr["Character"]:WaitForChild("HumanoidRootPart").CFrame
1285
end
1286
end
1287
elseif text == prefix.."rj" then
1288
GetService("TeleportService"):Teleport(game.PlaceId, player)
1289
elseif text:sub(1, 8 + #prefix - 1) == prefix.."headsit" then
1290
isSit = not isSit
1291
Workspace.Gravity = oldGravity
1292
local pl = text:sub(10 + #prefix - 1)
1293
local pl = findPlayer(pl)
1294
while isSit and task.wait() do
1295
if pl ~= nil and pl["Character"]:FindFirstChild("Head") then
1296
rootpart.CFrame = pl["Character"]:FindFirstChild("Head").CFrame + Vector3.new(0, 2, 0)
1297
oldGravity = Workspace.Gravity
1298
Workspace.Gravity = 0
1299
humanoid.Sit = true
1300
end
1301
end
1302
elseif text:sub(1, 6 + #prefix - 1) == prefix.."float" then
1303
isFloat = not isFloat
1304
if text:sub(8 + #prefix - 1) ~= "" and isFloat then
1305
humanoid.HipHeight = tonumber(text:sub(8 + #prefix - 1))
1306
elseif not isFloat then
1307
humanoid.HipHeight = 0
1308
end
1309
elseif text:sub(1, 7 + #prefix - 1) == prefix.."rizzup" then
1310
if text:sub(9 + #prefix -1) ~= "" then
1311
local pl1 = text:sub(9 + #prefix -1)
1312
local pl = findPlayer(pl1)
1313
if pl ~= nil then
1314
makemsg("Hey "..pl.DisplayName..", "..rl[math.random(1, #rl)])
1315
end
1316
end
1317
elseif text == prefix.."day" then
1318
GetService("Lightning").ClockTime = 12
1319
elseif text == prefix.."night" then
1320
GetService("Lightning").ClockTime = 24
1321
elseif text == prefix.."WhiteLight" then
1322
GetService("Lightning").Ambient = Color3.fromRGB(255, 255, 255)
1323
elseif text == prefix.."DarkLight" then
1324
GetService("Lightning").Ambient = Color3.fromRGB(56, 56, 56)
1325
elseif text == prefix.."copyall" then
1326
copyAll = not copyAll
1327
elseif text:sub(1, 5 + #prefix - 1) == prefix.."copy" then
1328
pla = findPlayer(text:sub(7 + #prefix - 1))
1329
if pla ~= nil then
1330
isCopy = not isCopy
1331
copyingPlr = pla
1332
end
1333
elseif text:sub(1, 7 + #prefix - 1) == prefix.."howbad" then
1334
local pl = findPlayer(text:sub(9 + #prefix))
1335
local perc = math.random(1, 100)
1336
makemsg(pl.." is "..perc.."% bad.")
1337
elseif text:sub(1, 8 + #prefix - 1) == prefix.."hownice" then
1338
local pl = findPlayer(text:sub(10 + #prefix))
1339
local perc = math.random(1, 100)
1340
makemsg(pl.." is "..perc.."% nice.")
1341
elseif text:sub(1, 7 + #prefix - 1) == prefix.."howskid" then
1342
local pl = findPlayer(text:sub(10 + #prefix))
1343
local perc = math.random(1, 100)
1344
makemsg(pl.." is "..perc.."% skid.")
1345
elseif text:sub(1, 7 + #prefix - 1) == prefix.."testiq" then
1346
local pl = findPlayer(text:sub(9 + #prefix))
1347
local iq = math.random(1, 300)
1348
makemsg(pl.." has "..iq)
1349
elseif text:sub(1, 6 + #prefix - 1) == prefix.."whois" then
1350
local pla = findPlayer(text:sub(8 + #prefix - 1))
1351
if pla ~= nil then
1352
local data = string.format("Username: "..pla.Name..".\nDisplay Name: "..pla.DisplayName..".\nAccount Age: "..pla.AccountAge.." days.\nID: "..pla.Userid..".\n")
1353
print(data)
1354
end
1355
elseif text == prefix.."version" then
1356
print("Brick Admin REWRITE v1.0.1")
1357
print("Roblox Version "..version())
1358
elseif text:sub(1, 8 + #prefix - 1) == prefix.."gravity" then
1359
local num = tonumber(text:sub(10 + #prefix - 1))
1360
Workspace.Gravity = num
1361
elseif text:sub(1, 6 + #prefix - 1) == prefix.."speed" then
1362
local speed = tonumber(text:sub(8 + #prefix - 1))
1363
speedhook = nil
1364
Hooked = true
1365
speedhook = hookmetamethod(
1366
game,
1367
"__index",
1368
function(self, property)
1369
if property == "WalkSpeed" and self == humanoid and Hooked then
1370
return 16
1371
end
1372
return speedhook(self, property)
1373
end
1374
1375
1376
)
1377
humanoid.WalkSpeed = speed
1378
elseif text:sub(1, 7 + #prefix - 1) == prefix.."speed+" then
1379
local speed = tonumber(text:sub(9 + #prefix - 1))
1380
speedhook = nil
1381
speedHooked = true
1382
speedhook = hookmetamethod(
1383
game,
1384
"__index",
1385
function(self, property)
1386
if property == "WalkSpeed" and self == humanoid and Hooked then
1387
return 16
1388
end
1389
1390
if property == "Magnitude" and self:IsDescendantOf(character) then
1391
return 10
1392
end
1393
return speedhook(self, property)
1394
end
1395
)
1396
humanoid.WalkSpeed = speed
1397
1398
elseif text:sub(1, 6 + #prefix - 1) == prefix.."jump+" then
1399
local jp = tonumber(text:sub(8 + #prefix - 1))
1400
jphook = nil
1401
jpHooked = true
1402
jphook = hookmetamethod(
1403
game,
1404
"__index",
1405
function(self, property)
1406
if property == "JumpPower" and self == humanoid and jpHooked then
1407
return 50
1408
end
1409
if property == "Magnitude" and self:IsDescendantOf(character) and jpHooked then
1410
return 10
1411
end
1412
return jphook(self, property)
1413
end
1414
)
1415
humanoid.JumpPower = jp
1416
elseif text:sub(1, 5 + #prefix - 1) == prefix.."jump" then
1417
local jo = tonumber(text:sub(7 + #prefix - 1))
1418
jphook = nil
1419
jpHooked = true
1420
jphook = hookmetamethod(
1421
game,
1422
"__index",
1423
function(self, property)
1424
if property == "JumpPower" and self == humanoid and jpHooked then
1425
return 50
1426
end
1427
1428
return jphook(self, property)
1429
end
1430
)
1431
humanoid.JumpPower = jp
1432
elseif text:sub(1, 5 + #prefix - 1) == prefix.."mute" then
1433
local pla = findPlayer(text:sub(7 + #prefix - 1))
1434
if pla ~= nil then
1435
if chatMethod == 2 then
1436
TextChatService["TextChannels"]:FindFirstChildWhichIsA("TextChannel"):SendAsync("/mute "..pla.Name)
1437
elseif chatMethod == 1 then
1438
ReplicatedStorage["DefaultChatSystemChatEvents"].SayMessageRequest:FireServer("/mute "..pla.Name, "All")
1439
end
1440
end
1441
elseif text:sub(1, 7 + #prefix - 1) == prefix.."unmute" then
1442
local pla = findPlayer(text:sub(9 + #prefix - 1))
1443
if pla ~= nil then
1444
if chatMethod == 2 then
1445
TextChatService["TextChannels"]:FindFirstChildWhichIsA("TextChannel"):SendAsync("/unmute "..pla.Name)
1446
elseif chatMethod == 1 then
1447
ReplicatedStorage["DefaultChatSystemChatEvents"].SayMessageRequest:FireServer("/unmute "..pla.Name, "All")
1448
end
1449
end
1450
elseif text == prefix.."logs" then
1451
isLog = not isLog
1452
elseif text:sub(1, 7 + #prefix - 1) == prefix.."copycf" then
1453
if text:sub(9 + #prefix - 1) == nil or "" then
1454
setclipboard(tostring(rootpart.CFrame))
1455
else
1456
setclipboard(tostring(findPlayer(text:sub(9 + #prefix - 1))["Character"]["HumanoidRootPart"].CFrame))
1457
end
1458
elseif text:sub(1, 8 + #prefix - 1) == prefix.."copypos" then
1459
if text:sub(10 + #prefix - 1) == nil or "" then
1460
setclipboard(tostring(rootpart.Position))
1461
else
1462
setclipboard(tostring(findPlayer(text:sub(10 + #prefix - 1))["Character"]["HumanoidRootPart"].Position))
1463
end
1464
elseif text:sub(1, 5 + #prefix - 1) == prefix.."time" then
1465
local time = tonumber(text:sub(7 + #prefix -1))
1466
GetService("Lightning").ClockTime = time
1467
elseif text:sub(1, 5 + #prefix - 1) == prefix.."spin" then
1468
isSpin = true
1469
spinCharacter(360 * tonumber(text:sub(7 + #prefix - 1)))
1470
elseif text == prefix.."unspin" then
1471
isSpin = false
1472
elseif text:sub(1, 5 + #prefix - 1) == prefix.."view" then
1473
local lgg = text:sub(7 + #prefix - 1)
1474
local plr = findPlayer(lgg)
1475
if lgg ~= "" and plr ~= nil and plr["Character"]["HumanoidRootPart"] then
1476
workspace.Camera.CameraSubject = plr["Character"]["Humanoid"]
1477
end
1478
elseif text:sub(1, 5 + #prefix - 1) == prefix.."spam" then
1479
local msg = text:sub(7 + #prefix - 1)
1480
isSpam = not isSpam
1481
while task.wait() and isSpam and msg ~= "" or nil do
1482
chat(msg)
1483
end
1484
elseif text:sub(1, 7 + #prefix - 1) == prefix.."follow" then
1485
local pla = findPlayer(text:sub(9 + #prefix -1))
1486
isFollow = not isFollow
1487
while task.wait(.1) and isFollow do
1488
if pla == nil then return end
1489
humanoid.WalkToPoint = pla.Character.HumanoidRootPart.Position
1490
end
1491
elseif text:sub(1, 10 + #prefix - 1) == prefix.."favorite " then
1492
if favorites == "No commands favorited." then
1493
favorites = ""
1494
end
1495
favorites = favorites.."\n"..text:sub(11 + #prefix - 1)
1496
writefile("BrickAdmin/Favorites", tostring(favorites))
1497
1498
elseif text == prefix.."favorites" then
1499
print(favorites)
1500
elseif text:sub(1, 12 + #prefix - 1) == prefix.."unfavorite " then
1501
if favorites == "No commands favorited." then
1502
favorites = ""
1503
end
1504
local f = text:sub(13 + #prefix - 1)
1505
if favorites:find(f) then
1506
favorites = favorites:gsub(f, "")
1507
writefile("BrickAdmin/Favorites", favorites)
1508
end
1509
elseif text == prefix.."cmds" then
1510
print("spin <int>, favorite <cmd>, unfavorite <cmd>, favorites, follow <plr>, tpto <plr>, walkto <plr>, version, spam <msg>, looptp <plr>, logs, unspin, mute <plr>, unmute <plr>, jump <jumppower>, speed <int>, gravity <int>, howbad, howskid, hownice, testiq <plr>, day, night, whois <plr>, WhiteLight, DarkLight, rj, re, prefix <string>, void <time>, clear, findplr <plr>, destroy, float <int>, rizzup <plr>, safevoid <int>")
1511
elseif text == "freegamepasses" then
1512
hookfunction(game:GetService("Marketplace Service").UserOwnsGamepassAsync, function()
1513
return true
1514
end)
1515
end
1516
end)
1517
antiVoid(AV)
1518
--[[Credits to https://scriptblox.com/script/anti-kick-(-prevents-local-scripts-from-kicking-you.-)_253 for the antikick bc mine kept breaking controls <3]]
1519
players.PlayerAdded:Connect(function(plr)
1520
if lastPlr ~= plr and isLog then
1521
print("PLAYER ADDED: \nName: "..plr.Name.."\nDisplay Name: "..plr.DisplayName.."\nAccount Age: "..plr.AccountAge.." Days\nUser ID: "..plr.UserId)
1522
lastPlr = plr
1523
end
1524
lastPlr = nil
1525
end)
1526
players.PlayerRemoving:Connect(function(plr)
1527
if lastPlr ~= plr and isLog then
1528
print("PLAYER REMOVED: \nName: "..plr.Name.."\nAccount Age: "..plr.AccountAge.." Days \nUser ID: "..plr.UserId)
1529
lastPlr = plr
1530
end
1531
lastPlr = nil
1532
end)
1533
game:GetService("UserInputService").InputBegan:Connect(function(input)
1534
if input.KeyCode == Enum.KeyCode.Z and ScriptCodeBox.Visible then
1535
ScriptCodeBox.Text = getclipboard()
1536
elseif not ScriptNameBox.Visible and input.KeyCode == Enum.KeyCode.Z then
1537
local s, e = pcall(function()
1538
task.spawn(function()
1539
loadstring(getclipboard())()
1540
end)
1541
end)
1542
if not s then
1543
print("Failed when trying to execute from clipboard, Error: "..e)
1544
end
1545
end
1546
end)
1547
local old
1548
old = hookmetamethod(
1549
game,
1550
"__namecall",
1551
function(self, ...)
1552
local args = {...}
1553
local method = tostring(getnamecallmethod())
1554
if string.lower(method) == "kick" and AK == "true" then
1555
print("[ANTI-KICK] game tried to kick you, reason: "..args[1])
1556
return task.wait(9e9)
1557
end
1558
return old(self, ...)
1559
end
1560
)