-
Notifications
You must be signed in to change notification settings - Fork 0
/
Anti Banned
349 lines (306 loc) · 12 KB
/
Anti Banned
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
-- This basically makes roblox unable to log your chat messages sent in-game. Meaning if you get reported for saying something bad, you won't get banned!
-- Store in autoexec folder
-- Credits: AnthonyIsntHere and ArianBlaack
--[[
Change-logs:
8/22/2022 - Fixed Chat gui glitching on some games such as Prison Life.
9/30/2022 - Fixed chat gui glitching AGAIN... (added better checks too)
10/10/2022 - Added gethui() function and fix for Synapse v3.
11/11/2022 - Idk what happened but it stopped working... I fixed it though.
]]--
local ACL_LoadTime = tick()
local ChatChanged = false
local OldSetting = nil
local WhitelistedCoreTypes = {
"Chat",
"All",
Enum.CoreGuiType.Chat,
Enum.CoreGuiType.All
}
local StarterGui = game:GetService("StarterGui")
local FixCore = function(x)
local CoreHook; CoreHook = hookmetamethod(x, "__namecall", function(self, ...)
local Method = getnamecallmethod()
local Arguments = {...}
if self == x and Method == "SetCoreGuiEnabled" and not checkcaller() then
local CoreType = Arguments[1]
local Enabled = Arguments[2]
if table.find(WhitelistedCoreTypes, CoreType) and not Enabled then
if CoreType == ("Chat" or Enum.CoreGuiType.Chat) then
OldSetting = Enabled
end
ChatChanged = true
end
end
return CoreHook(self, ...)
end)
x.CoreGuiChangedSignal:Connect(function(Type)
if table.find(WhitelistedCoreTypes, Type) and ChatChanged then
task.wait()
if not StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat) then
x:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
end
wait(1)
if StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat) then
x:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, OldSetting) -- probably defaults to false i am too tired for the making of this lol
end
ChatChanged = false
end
end)
end
if StarterGui then
FixCore(StarterGui)
if not StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat) then
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
end
else
local Connection; Connection = game.ChildAdded:Connect(function(x)
if x:IsA("StarterGui") then
FixCore(x)
Connection:Disconnect()
end
end)
end
if not game:IsLoaded() then
game.Loaded:wait()
end
local CoreGui = game:GetService("CoreGui")
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") do
if not PlayerGui then
repeat task.wait() until Player:FindFirstChildWhichIsA("PlayerGui")
PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui")
end
end
local Notify = function(_Title, _Text , Time)
StarterGui:SetCore("SendNotification", {Title = _Title, Text = _Text, Icon = "rbxassetid://2541869220", Duration = Time})
end
local Tween = function(Object, Time, Style, Direction, Property)
return TweenService:Create(Object, TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction]), Property)
end
local ACLWarning = Instance.new("ScreenGui")
local Background = Instance.new("Frame")
local Top = Instance.new("Frame")
local Exit = Instance.new("TextButton")
local UICorner = Instance.new("UICorner")
local WarningLbl = Instance.new("TextLabel")
local Loading = Instance.new("Frame")
local Bar = Instance.new("Frame")
local WarningBackground = Instance.new("Frame")
local WarningFrame = Instance.new("Frame")
local Despair = Instance.new("TextLabel")
local UIListLayout = Instance.new("UIListLayout")
local Reason_1 = Instance.new("TextLabel")
local Reason_2 = Instance.new("TextLabel")
local Trollge = Instance.new("ImageLabel")
local UIPadding = Instance.new("UIPadding")
local MakeGuiThread = coroutine.wrap(function()
if syn then
if gethui then
gethui(ACLwarning)
else
syn.protect_gui(ACLWarning)
end
end
ACLWarning.Name = "ACL Warning"
ACLWarning.Parent = CoreGui
ACLWarning.Enabled = false
ACLWarning.DisplayOrder = -2147483648
Background.Name = "Background"
Background.Parent = ACLWarning
Background.AnchorPoint = Vector2.new(0.5, 0.5)
Background.BackgroundColor3 = Color3.fromRGB(21, 0, 0)
Background.BorderSizePixel = 0
Background.Position = UDim2.new(0.5, 0, 0.5, 0)
Background.Size = UDim2.new(0.300000012, 0, 0.5, 0)
Top.Name = "Top"
Top.Parent = Background
Top.AnchorPoint = Vector2.new(0.5, 0.5)
Top.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
Top.BorderSizePixel = 0
Top.Position = UDim2.new(0.5, 0, 0.100000001, 0)
Top.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
Exit.Name = "Exit"
Exit.Parent = Top
Exit.AnchorPoint = Vector2.new(0.5, 0.5)
Exit.BackgroundColor3 = Color3.fromRGB(38, 0, 0)
Exit.Position = UDim2.new(0.949999988, 0, 0.5, 0)
Exit.Size = UDim2.new(0.100000001, -6, 1, -9)
Exit.Visible = false
Exit.Font = Enum.Font.Arcade
Exit.Text = "X"
Exit.TextColor3 = Color3.fromRGB(255, 255, 255)
Exit.TextScaled = true
Exit.TextSize = 14.000
Exit.TextWrapped = true
UICorner.CornerRadius = UDim.new(0.200000003, 0)
UICorner.Parent = Exit
WarningLbl.Name = "WarningLbl"
WarningLbl.Parent = Top
WarningLbl.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
WarningLbl.BackgroundTransparency = 1.000
WarningLbl.Position = UDim2.new(0, 17, 0, 0)
WarningLbl.Size = UDim2.new(0.5, 0, 1, 0)
WarningLbl.Font = Enum.Font.Arcade
WarningLbl.Text = "Warning!"
WarningLbl.TextColor3 = Color3.fromRGB(255, 255, 255)
WarningLbl.TextScaled = true
WarningLbl.TextSize = 14.000
WarningLbl.TextWrapped = true
WarningLbl.TextXAlignment = Enum.TextXAlignment.Left
Loading.Name = "Loading"
Loading.Parent = Top
Loading.AnchorPoint = Vector2.new(0.5, 0.5)
Loading.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
Loading.BorderSizePixel = 0
Loading.Position = UDim2.new(0.699999988, 0, 0.5, 0)
Loading.Size = UDim2.new(0.349999994, 0, 0.0199999996, 0)
Bar.Name = "Bar"
Bar.Parent = Loading
Bar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Bar.BorderSizePixel = 0
Bar.Size = UDim2.new(0, 0, 1, 0)
WarningBackground.Name = "WarningBackground"
WarningBackground.Parent = Background
WarningBackground.AnchorPoint = Vector2.new(0.5, 0.5)
WarningBackground.BackgroundColor3 = Color3.fromRGB(9, 9, 9)
WarningBackground.BorderSizePixel = 0
WarningBackground.Position = UDim2.new(0.5, 0, 0.550000012, 0)
WarningBackground.Size = UDim2.new(0.899999976, 0, 0.800000012, 0)
WarningFrame.Name = "WarningFrame"
WarningFrame.Parent = WarningBackground
WarningFrame.AnchorPoint = Vector2.new(0.5, 0.5)
WarningFrame.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
WarningFrame.BorderSizePixel = 0
WarningFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
WarningFrame.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
Despair.Name = "Despair"
Despair.Parent = WarningFrame
Despair.AnchorPoint = Vector2.new(0.5, 0.5)
Despair.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
Despair.BackgroundTransparency = 1.000
Despair.BorderColor3 = Color3.fromRGB(27, 42, 53)
Despair.BorderSizePixel = 0
Despair.Position = UDim2.new(0.5, 0, 0.100000001, 0)
Despair.Size = UDim2.new(0.949999988, 0, 0.119999997, 0)
Despair.Font = Enum.Font.Oswald
Despair.Text = "Anti Chat Logger will not work here!"
Despair.TextColor3 = Color3.fromRGB(255, 255, 255)
Despair.TextScaled = true
Despair.TextSize = 50.000
Despair.TextWrapped = true
Despair.TextYAlignment = Enum.TextYAlignment.Top
UIListLayout.Parent = WarningFrame
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 15)
Reason_1.Name = "Reason_1"
Reason_1.Parent = WarningFrame
Reason_1.AnchorPoint = Vector2.new(0.5, 0.5)
Reason_1.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
Reason_1.BackgroundTransparency = 1.000
Reason_1.BorderColor3 = Color3.fromRGB(27, 42, 53)
Reason_1.BorderSizePixel = 0
Reason_1.Position = UDim2.new(0.5, 0, 0.100000001, 0)
Reason_1.Size = UDim2.new(0.949999988, 0, 0.100000001, 0)
Reason_1.Visible = false
Reason_1.Font = Enum.Font.Oswald
Reason_1.Text = "-Chat Module was not found."
Reason_1.TextColor3 = Color3.fromRGB(255, 0, 0)
Reason_1.TextScaled = true
Reason_1.TextSize = 50.000
Reason_1.TextWrapped = true
Reason_1.TextYAlignment = Enum.TextYAlignment.Top
Reason_2.Name = "Reason_2"
Reason_2.Parent = WarningFrame
Reason_2.AnchorPoint = Vector2.new(0.5, 0.5)
Reason_2.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
Reason_2.BackgroundTransparency = 1.000
Reason_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
Reason_2.BorderSizePixel = 0
Reason_2.Position = UDim2.new(0.5, 0, 0.100000001, 0)
Reason_2.Size = UDim2.new(0.949999988, 0, 0.100000001, 0)
Reason_2.Visible = false
Reason_2.Font = Enum.Font.Oswald
Reason_2.Text = "-MessagePosted function is invalid."
Reason_2.TextColor3 = Color3.fromRGB(255, 0, 0)
Reason_2.TextScaled = true
Reason_2.TextSize = 50.000
Reason_2.TextWrapped = true
Reason_2.TextYAlignment = Enum.TextYAlignment.Top
Trollge.Name = "Trollge"
Trollge.Parent = WarningFrame
Trollge.AnchorPoint = Vector2.new(0.5, 0.5)
Trollge.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Trollge.BackgroundTransparency = 1.000
Trollge.Position = UDim2.new(0.5, 0, 0.670000017, 0)
Trollge.Size = UDim2.new(0.449999988, 0, 0.5, 0)
Trollge.Image = "rbxassetid://10104834800"
UIPadding.Parent = WarningFrame
UIPadding.PaddingTop = UDim.new(0, 10)
Exit.MouseButton1Click:Connect(function()
local UpTween = Tween(Background, .2, "Quint", "Out", {Position = UDim2.new(0.5, 0, 0.45, 0)})
local DownTween = Tween(Background, 1, "Quad", "Out", {Position = UDim2.new(0.5, 0, 2, 0)})
UpTween:Play()
UpTween.Completed:wait()
DownTween:Play()
DownTween.Completed:wait()
ACLWarning:Destroy()
end)
end)()
local ExitCooldown = function()
wait(.5)
local Tween = Tween(Bar, 3, "Quad", "InOut", {Size = UDim2.new(1, 0, 1, 0)})
Tween:Play()
Tween.Completed:wait()
Loading:Destroy()
Exit.Visible = true
end
local PlayerScripts = Player:WaitForChild("PlayerScripts")
local ChatMain = PlayerScripts:FindFirstChild("ChatMain", true) or false
if not ChatMain then
local Timer = tick()
repeat
task.wait()
until PlayerScripts:FindFirstChild("ChatMain", true) or tick() > (Timer + 3)
ChatMain = PlayerScripts:FindFirstChild("ChatMain", true)
if not ChatMain then
ACLWarning.Enabled = true
Reason_1.Visible = true
ExitCooldown()
return
end
end
local PostMessage = require(ChatMain).MessagePosted
if not PostMessage then
ACLWarning.Enabled = true
Reason_2.Visible = true
ExitCooldown()
return
end
local MessageEvent = Instance.new("BindableEvent")
local OldFunctionHook
OldFunctionHook = hookfunction(PostMessage.fire, function(self, Message)
if not checkcaller() and self == PostMessage then
MessageEvent:Fire(Message)
return
end
return OldFunctionHook(self, Message)
end)
if setfflag then
setfflag("AbuseReportScreenshot", "False")
setfflag("AbuseReportScreenshotPercentage", "0")
end
ChatFixToggle = false
task.spawn(function()
wait(1)
ACLWarning:Destroy()
end)
if OldSetting then
StarterGui:SetCoreGuiEnabled(CoreGuiSettings[1], CoreGuiSettings[2])
end
Notify("🔹Anthony's ACL🔹", "Anti Chat and Screenshot Logger Loaded!", 15)
print(string.format("Anti Chat-Logger has loaded in %s seconds.", tostring(tick() - ACL_LoadTime):sub(1, 4)))
--