Guest User

Anti Ban

a guest
Oct 26th, 2024
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.18 KB | None | 0 0
  1. -- 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!
  2. -- Store the loadstring (line 5) in your autoexec folder into a text/lua file to receive automatic updates [remove the "--"" part when you paste it into the text file]
  3. -- Credits: AnthonyIsntHere
  4.  
  5. loadstring(game:HttpGet("https://raw.githubusercontent.com/AnthonyIsntHere/anthonysrepository/main/scripts/AntiChatLogger.lua", true))()
  6.  
  7. -- 4/1/2023 - Rewritten
  8. -- 4/4/2023 - Fixed scrollbar visibility issue
  9. -- 4/15/2023 - Fixed Adonis anti-cheat kicking issue
  10. -- 4/26/2023 - Fixed tick loaded format
  11. -- 4/28/2023 - Added support for Fluxus users (hookmetamethod issue seems to have gotten fixed)
  12. -- 6/14/2023 - Added support for Evon users (checkcaller isuse)
  13. -- 7/7/2023 - Added support for Valyse users "FLAG IS NOT EXIST" LMFAO
  14. -- 7/22/2023 - Added global for universal scripts (mainly chat bypasses)
  15. -- 8/24/2023 - Now supports Player.Chatted signal event for clientside (highly requested)
  16. -- 8/25/2023 - Fully fixed (i was high when editing it yesterday sorry guys)
  17. -- 9/1/2023 - Fixed issue with /e command not working sometimes (mainly when joining a game)
  18.  
  19. if not game:IsLoaded() then
  20. game.Loaded:wait()
  21. end
  22.  
  23. local ACL_LoadTime = tick()
  24. local NotificationTitle = "Anthony's ACL"
  25.  
  26. local OldCoreTypeSettings = {}
  27. local WhitelistedCoreTypes = {
  28. "Chat",
  29. "All",
  30. Enum.CoreGuiType.Chat,
  31. Enum.CoreGuiType.All
  32. }
  33.  
  34. local OldCoreSetting = nil
  35.  
  36. local CoreGui = game:GetService("CoreGui")
  37. local StarterGui = game:GetService("StarterGui")
  38. local TweenService = game:GetService("TweenService")
  39. local TextChatService = game:GetService("TextChatService")
  40. local Players = game:GetService("Players")
  41.  
  42. local Player = Players.LocalPlayer
  43.  
  44. local Notify = function(_Title, _Text , Time)
  45. StarterGui:SetCore("SendNotification", {Title = _Title, Text = _Text, Icon = "rbxassetid://2541869220", Duration = Time})
  46. end
  47.  
  48. local Tween = function(Object, Time, Style, Direction, Property)
  49. return TweenService:Create(Object, TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction]), Property)
  50. end
  51.  
  52. local PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") do
  53. if not PlayerGui then
  54. local Timer = tick() + 5
  55. repeat task.wait() until Player:FindFirstChildWhichIsA("PlayerGui") or (tick() > Timer)
  56. PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") or false
  57. if not PlayerGui then
  58. return Notify(NotificationTitle, "Failed to find PlayerGui!", 10)
  59. end
  60. end
  61. end
  62.  
  63. if getgenv().AntiChatLogger then
  64. return Notify(NotificationTitle, "Anti Chat and Screenshot Logger already loaded!", 15)
  65. else
  66. getgenv().AntiChatLogger = true
  67. end
  68.  
  69. local Metatable = getrawmetatable(StarterGui)
  70. setreadonly(Metatable, false)
  71.  
  72. local MessageEvent = Instance.new("BindableEvent")
  73.  
  74. if hookmetamethod then
  75. local CoreHook do
  76. CoreHook = hookmetamethod(StarterGui, "__namecall", newcclosure(function(self, ...)
  77. local Method = getnamecallmethod()
  78. local Arguments = {...}
  79.  
  80. if self == StarterGui and not checkcaller() then
  81. if Method == "SetCoreGuiEnabled" then
  82. local CoreType = Arguments[1]
  83. local Enabled = Arguments[2]
  84.  
  85. if table.find(WhitelistedCoreTypes, CoreType) and Enabled == false then -- Thanks Harun for correcting me on the second argument
  86. OldCoreTypeSettings[CoreType] = Enabled
  87. return
  88. end
  89. elseif Method == "SetCore" then
  90. local Core = Arguments[1]
  91. local Connection = Arguments[2]
  92.  
  93. if Core == "CoreGuiChatConnections" then
  94. OldCoreSetting = Connection
  95. return
  96. end
  97. end
  98. end
  99.  
  100. return CoreHook(self, ...)
  101. end))
  102. end
  103.  
  104. if not getgenv().ChattedFix then
  105. getgenv().ChattedFix = true
  106.  
  107. local ChattedFix do
  108. ChattedFix = hookmetamethod(Player, "__index", newcclosure(function(self, index)
  109. if self == Player and index == "Chatted" then
  110. return MessageEvent.Event
  111. end
  112.  
  113. return ChattedFix(self, index)
  114. end))
  115. end
  116.  
  117. task.spawn(function()
  118. local ChattedSignal = false
  119.  
  120. for _, x in next, getgc() do
  121. if type(x) == "function" and tostring(getfenv(x).script) == "Animate" then
  122. if islclosure(x) then
  123. local Constants = getconstants(x)
  124.  
  125. for _, v in next, Constants do
  126. if v == "Chatted" then
  127. ChattedSignal = x
  128. end
  129. end
  130. end
  131. end
  132. end
  133.  
  134. if ChattedSignal then
  135. ChattedSignal() -- to prevent emote chat commands from breaking on join
  136. end
  137. end)
  138. end
  139. end
  140.  
  141. local EnabledChat = task.spawn(function()
  142. repeat
  143. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
  144. task.wait()
  145. until StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat)
  146. end)
  147.  
  148. local WarningGuiThread = task.spawn(function()
  149. WarningUI = Instance.new("ScreenGui")
  150. Main = Instance.new("Frame")
  151. BackgroundHolder = Instance.new("Frame")
  152. Background = Instance.new("Frame")
  153. TopBar = Instance.new("Frame")
  154. UIGradient = Instance.new("UIGradient")
  155. TitleHolder = Instance.new("Frame")
  156. Title = Instance.new("TextLabel")
  157. Holder = Instance.new("Frame")
  158. UIListLayout = Instance.new("UIListLayout")
  159. Reason_1 = Instance.new("TextLabel")
  160. Reason_2 = Instance.new("TextLabel")
  161. Reason_3 = Instance.new("TextLabel")
  162. WarningText = Instance.new("TextLabel")
  163. Exit = Instance.new("TextButton")
  164. ImageLabel = Instance.new("ImageLabel")
  165.  
  166. if syn then
  167. syn.protect_gui(WarningUI)
  168. end
  169.  
  170. WarningUI.Enabled = false
  171. WarningUI.Name = "WarningUI"
  172. WarningUI.Parent = CoreGui
  173.  
  174. Main.Name = "Main"
  175. Main.Parent = WarningUI
  176. Main.AnchorPoint = Vector2.new(.5, .5)
  177. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  178. Main.BackgroundTransparency = 1
  179. Main.Position = UDim2.new(.5, 0, .5, 0)
  180. Main.Size = UDim2.new(0, 400, 0, 400)
  181.  
  182. BackgroundHolder.Name = "BackgroundHolder"
  183. BackgroundHolder.Parent = Main
  184. BackgroundHolder.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  185. BackgroundHolder.BackgroundTransparency = .25
  186. BackgroundHolder.BorderSizePixel = 0
  187. BackgroundHolder.Size = UDim2.new(1, 0, 1, 0)
  188.  
  189. Background.Name = "Background"
  190. Background.Parent = BackgroundHolder
  191. Background.AnchorPoint = Vector2.new(.5, .5)
  192. Background.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  193. Background.BorderSizePixel = 0
  194. Background.Position = UDim2.new(.5, 0, .5, 0)
  195. Background.Size = UDim2.new(.96, 0, .96, 0)
  196.  
  197. TopBar.Name = "TopBar"
  198. TopBar.Parent = Background
  199. TopBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  200. TopBar.BorderSizePixel = 0
  201. TopBar.Size = UDim2.new(1, 0, 0, 2)
  202.  
  203. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(53, 149, 146)), ColorSequenceKeypoint.new(.29, Color3.fromRGB(93, 86, 141)), ColorSequenceKeypoint.new(.50, Color3.fromRGB(126, 64, 138)), ColorSequenceKeypoint.new(.75, Color3.fromRGB(143, 112, 112)), ColorSequenceKeypoint.new(1, Color3.fromRGB(159, 159, 80))}
  204. UIGradient.Parent = TopBar
  205.  
  206. TitleHolder.Name = "TitleHolder"
  207. TitleHolder.Parent = Background
  208. TitleHolder.AnchorPoint = Vector2.new(.5, .5)
  209. TitleHolder.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  210. TitleHolder.BorderColor3 = Color3.fromRGB(44, 44, 44)
  211. TitleHolder.BorderSizePixel = 2
  212. TitleHolder.Position = UDim2.new(.5, 0, .5, 0)
  213. TitleHolder.Size = UDim2.new(.9, 0, .9, 0)
  214.  
  215. Title.Name = "Title"
  216. Title.Parent = TitleHolder
  217. Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  218. Title.BorderSizePixel = 0
  219. Title.Position = UDim2.new(0, 15, 0, -12)
  220. Title.Size = UDim2.new(0, 75, 0, 20)
  221. Title.Font = Enum.Font.SourceSansBold
  222. Title.Text = "Warning"
  223. Title.TextColor3 = Color3.fromRGB(235, 235, 235)
  224. Title.TextScaled = true
  225. Title.TextWrapped = true
  226.  
  227. Holder.Name = "Holder"
  228. Holder.Parent = TitleHolder
  229. Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  230. Holder.BackgroundTransparency = 1
  231. Holder.Position = UDim2.new(0, 30, .125, 0)
  232. Holder.Size = UDim2.new(1, -30, .875, 0)
  233.  
  234. UIListLayout.Parent = Holder
  235. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  236.  
  237. Reason_1.Name = "Reason_1"
  238. Reason_1.Parent = Holder
  239. Reason_1.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  240. Reason_1.BackgroundTransparency = 1
  241. Reason_1.BorderSizePixel = 0
  242. Reason_1.Size = UDim2.new(1, 0, 0, 20)
  243. Reason_1.Font = Enum.Font.SourceSans
  244. Reason_1.Text = "- TextChatService is enabled"
  245. Reason_1.TextColor3 = Color3.fromRGB(199, 40, 42)
  246. Reason_1.TextScaled = true
  247. Reason_1.TextWrapped = true
  248. Reason_1.TextXAlignment = Enum.TextXAlignment.Left
  249. Reason_1.Visible = false
  250.  
  251. Reason_2.Name = "Reason_2"
  252. Reason_2.Parent = Holder
  253. Reason_2.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  254. Reason_2.BackgroundTransparency = 1
  255. Reason_2.BorderSizePixel = 0
  256. Reason_2.Size = UDim2.new(1, 0, 0, 20)
  257. Reason_2.Font = Enum.Font.SourceSans
  258. Reason_2.Text = "- Legacy chat module was not found"
  259. Reason_2.TextColor3 = Color3.fromRGB(199, 40, 42)
  260. Reason_2.TextScaled = true
  261. Reason_2.TextWrapped = true
  262. Reason_2.TextXAlignment = Enum.TextXAlignment.Left
  263. Reason_2.Visible = false
  264.  
  265. Reason_3.Name = "Reason_3"
  266. Reason_3.Parent = Holder
  267. Reason_3.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  268. Reason_3.BackgroundTransparency = 1
  269. Reason_3.BorderSizePixel = 0
  270. Reason_3.Size = UDim2.new(1, 0, 0, 20)
  271. Reason_3.Font = Enum.Font.SourceSans
  272. Reason_3.Text = "- MessagePosted function was not found"
  273. Reason_3.TextColor3 = Color3.fromRGB(199, 40, 42)
  274. Reason_3.TextScaled = true
  275. Reason_3.TextWrapped = true
  276. Reason_3.TextXAlignment = Enum.TextXAlignment.Left
  277. Reason_3.Visible = false
  278.  
  279. WarningText.Name = "WarningText"
  280. WarningText.Parent = TitleHolder
  281. WarningText.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  282. WarningText.BackgroundTransparency = 1
  283. WarningText.BorderSizePixel = 0
  284. WarningText.Position = UDim2.new(0, 30, .05, 0)
  285. WarningText.RichText = true
  286. WarningText.Size = UDim2.new(1, -30, 0, 20)
  287. WarningText.Font = Enum.Font.SourceSans
  288. WarningText.Text = "> Anti-<font color=\"#6ea644\">Chat Logger</font> will not work here!"
  289. WarningText.TextColor3 = Color3.fromRGB(255, 255, 255)
  290. WarningText.TextScaled = true
  291. WarningText.TextWrapped = true
  292. WarningText.TextXAlignment = Enum.TextXAlignment.Left
  293.  
  294. Exit.Name = "Exit"
  295. Exit.Parent = TitleHolder
  296. Exit.AnchorPoint = Vector2.new(.5, .5)
  297. Exit.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
  298. Exit.BorderColor3 = Color3.fromRGB(0, 0, 0)
  299. Exit.Position = UDim2.new(.5, 0, .899999976, 0)
  300. Exit.Size = UDim2.new(0, 250, 0, 20)
  301. Exit.Font = Enum.Font.SourceSans
  302. Exit.Text = "Ok"
  303. Exit.TextColor3 = Color3.fromRGB(255, 255, 255)
  304. Exit.TextScaled = true
  305. Exit.TextWrapped = true
  306.  
  307. ImageLabel.Parent = TitleHolder
  308. ImageLabel.AnchorPoint = Vector2.new(.5, .5)
  309. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  310. ImageLabel.BackgroundTransparency = 1
  311. ImageLabel.Position = UDim2.new(.5, 0, .6, 0)
  312. ImageLabel.Size = UDim2.new(.3, 0, .3, 0)
  313. ImageLabel.ZIndex = 1
  314. ImageLabel.Image = "rbxassetid://12969025384"
  315. ImageLabel.ImageColor3 = Color3.fromRGB(40, 40, 40)
  316. ImageLabel.ImageTransparency = .5
  317.  
  318. Exit.MouseButton1Down:Connect(function()
  319. WarningUI:Destroy()
  320. end)
  321. end)
  322.  
  323. if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
  324. WarningUI.Enabled = true
  325. Reason_1.Visible = true
  326. return
  327. end
  328.  
  329. local PlayerScripts = Player:WaitForChild("PlayerScripts")
  330. local ChatMain = PlayerScripts:FindFirstChild("ChatMain", true) or false
  331.  
  332. if not ChatMain then
  333. local Timer = tick()
  334.  
  335. repeat task.wait() until PlayerScripts:FindFirstChild("ChatMain", true) or tick() > (Timer + 3)
  336. ChatMain = PlayerScripts:FindFirstChild("ChatMain", true)
  337.  
  338. if not ChatMain then
  339. WarningUI.Enabled = true
  340. Reason_2.Visible = true
  341. return
  342. end
  343. end
  344.  
  345. local PostMessage = require(ChatMain).MessagePosted
  346.  
  347. if not PostMessage then
  348. WarningUI.Enabled = true
  349. Reason_3.Visible = true
  350. return
  351. end
  352.  
  353. local OldFunctionHook; OldFunctionHook = hookfunction(PostMessage.fire, function(self, Message)
  354. if self == PostMessage then
  355. MessageEvent:Fire(Message)
  356. return
  357. end
  358. return OldFunctionHook(self, Message)
  359. end)
  360.  
  361. if setfflag then
  362. pcall(function()
  363. setfflag("AbuseReportScreenshot", "False")
  364. setfflag("AbuseReportScreenshotPercentage", "0")
  365. end)
  366. end -- To prevent roblox from taking screenshots of your client.
  367.  
  368. local Credits = task.spawn(function()
  369. local UserIds = {
  370. 1414978355
  371. }
  372.  
  373. if table.find(UserIds, Player.UserId) then
  374. return
  375. end
  376.  
  377. local Tag = Instance.new("BillboardGui")
  378. local Title = Instance.new("TextLabel", Tag)
  379. local Rank = Instance.new("TextLabel", Tag)
  380. local Gradient = Instance.new("UIGradient", Title)
  381.  
  382. Tag.Brightness = 2
  383. Tag.Size = UDim2.new(4, 0, 1, 0)
  384. Tag.StudsOffsetWorldSpace = Vector3.new(0, 5, 0)
  385.  
  386. Title.BackgroundTransparency = 1
  387. Title.Size = UDim2.new(1, 0, .6, 0)
  388. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  389. Title.TextScaled = true
  390.  
  391. Rank.AnchorPoint = Vector2.new(.5, 0)
  392. Rank.BackgroundTransparency = 1
  393. Rank.Position = UDim2.new(.5, 0, .65, 0)
  394. Rank.Size = UDim2.new(.75, 0, .5, 0)
  395. Rank.TextColor3 = Color3.fromRGB(0, 0, 0)
  396. Rank.TextScaled = true
  397. Rank.Text = "< Anti Chat-Logger >"
  398.  
  399. Gradient.Color = ColorSequence.new({
  400. ColorSequenceKeypoint.new(0, Color3.new(.75, .75, .75)),
  401. ColorSequenceKeypoint.new(.27, Color3.new(0, 0, 0)),
  402. ColorSequenceKeypoint.new(.5, Color3.new(.3, 0, .5)),
  403. ColorSequenceKeypoint.new(0.78, Color3.new(0, 0, 0)),
  404. ColorSequenceKeypoint.new(1, Color3.new(.75, .75, .75))
  405. })
  406. Gradient.Offset = Vector2.new(-1, 0)
  407.  
  408. local GradientTeen = Tween(Gradient, 2, "Circular", "Out", {Offset = Vector2.new(1, 0)})
  409.  
  410. function PlayAnimation()
  411. GradientTeen:Play()
  412. GradientTeen.Completed:Wait()
  413. Gradient.Offset = Vector2.new(-1, 0)
  414. task.wait(.75)
  415. PlayAnimation()
  416. end
  417.  
  418. local AddTitle = function(Character)
  419. repeat task.wait() until Character
  420.  
  421. local Humanoid = Character and Character:WaitForChild("Humanoid")
  422. local RootPart = Humanoid and Humanoid.RootPart
  423.  
  424. if Humanoid then
  425. Humanoid:GetPropertyChangedSignal("RootPart"):Connect(function()
  426. if Humanoid.RootPart then
  427. Tag.Adornee = RootPart
  428. end
  429. end)
  430. end
  431.  
  432. if RootPart then
  433. Tag.Adornee = RootPart
  434. end
  435. end
  436.  
  437. task.spawn(PlayAnimation)
  438.  
  439. for _, x in next, Players:GetPlayers() do
  440. if table.find(UserIds, x.UserId) then
  441. Tag.Parent = workspace.Terrain
  442. Title.Text = x.Name
  443. AddTitle(x.Character)
  444. x.CharacterAdded:Connect(AddTitle)
  445. end
  446. end
  447.  
  448. Players.PlayerAdded:Connect(function(x)
  449. if table.find(UserIds, x.UserId) then
  450. Tag.Parent = workspace.Terrain
  451. Title.Text = x.Name
  452. x.CharacterAdded:Connect(AddTitle)
  453. end
  454. end)
  455.  
  456. Players.PlayerRemoving:Connect(function(x)
  457. if table.find(UserIds, x.UserId) then
  458. Tag.Parent = game
  459. end
  460. end)
  461. end)
  462.  
  463. task.delay(1, function() WarningUI:Destroy() end)
  464.  
  465. for _, x in next, OldCoreTypeSettings do
  466. if not x then
  467. StarterGui:SetCore("ChatActive", false)
  468. end
  469. StarterGui:SetCoreGuiEnabled(_, x)
  470. end
  471.  
  472. if OldCoreSetting then
  473. StarterGui:SetCore("CoreGuiChatConnections", OldCoreSetting)
  474. end
  475.  
  476. if StarterGui:GetCore("ChatActive") then
  477. StarterGui:SetCore("ChatActive", false)
  478. StarterGui:SetCore("ChatActive", true)
  479. end
  480.  
  481. --Metatable.__namecall = CoreHook
  482. if CoreHook then
  483. setmetatable(Metatable, {__namecall = CoreHook})
  484. end
  485. setreadonly(Metatable, true)
  486.  
  487. Notify(NotificationTitle, "Anti Chat and Screenshot Logger Loaded!", 15)
  488. print(string.format("AnthonyIsntHere's Anti Chat-Logger has loaded in %s seconds.", string.format("%.2f", tostring(tick() - ACL_LoadTime))))
Advertisement
Add Comment
Please, Sign In to add comment