Advertisement
AimbotMan2022

Roblox Anti Cheat Script

Dec 5th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.63 KB | None | 0 0
  1. Script
  2. Number 1 Script
  3. client.LaunchAnti=function(mode)
  4. if mode=='speed' then
  5. while wait(1) do
  6. cPcall(function()
  7. if select(2,pcall(workspace.GetRealPhysicsFPS)):match('GetRealPhysicsFPS') then
  8. if workspace:GetRealPhysicsFPS() > tonumber(client.RandiSpeed) then
  9. client.Remote('Exploited','kick','Speed exploiting')
  10. end
  11. else
  12. client.Remote('Exploited','kick','Method change detected.')
  13. end
  14. end)
  15. end
  16. elseif mode=='nameid' then
  17. if localplayer.userId~=client.RealID or localplayer.Name~=client.RealName then
  18. client.Remote('Exploited','log [Local kick]','Local name/userID does not match real name/userID')
  19. wait()
  20. localplayer:Kick("Local name/userID does not match real name/userID")
  21. --client.KillClient()
  22. end
  23. localplayer.Changed:connect(function(o)
  24. cPcall(function()
  25. if o=='Name' or o=='userId' then
  26. if localplayer.userId~=client.RealID or localplayer.Name~=client.RealName then
  27. client.Remote('Exploited','log [Local kick]','(Local name/userID does not match real name/userID')
  28. wait()
  29. localplayer:Kick("Local name/userID does not match real name/userID")
  30. end
  31. end
  32. end)
  33. end)
  34. elseif mode=='gui' then
  35. cPcall(function()
  36. for i,g in pairs(playergui:children()) do
  37. if g:IsA("PlayerGui") and not g.Name:find(client.CodeName) then
  38. local good=false
  39. for i,v in pairs(client.AllowedGuiList) do
  40. if g.Name==v then
  41. good=true
  42. end
  43. end
  44. if not good then g:Destroy() client.Remote("Exploited","log","GUI detected") end
  45. end
  46. end
  47. end)
  48. playergui.ChildAdded:connect(function(g)
  49. cPcall(function()
  50. if g:IsA("PlayerGui") and not g.Name:find(client.CodeName) then
  51. local good=false
  52. for i,v in pairs(client.AllowedGuiList) do
  53. if g.Name==v then
  54. good=true
  55. end
  56. end
  57. if not good then g:Destroy() client.Remote("Exploited","log","Building tools detected") end
  58. end
  59. end)
  60. end)
  61. elseif mode=='tool' then
  62. localplayer:WaitForChild("Backpack")
  63. cPcall(function()
  64. for i,t in pairs(localplayer.Backpack:children()) do
  65. client.Remote("GetSetting","AntiBuildingTools")
  66. client.Remote("GetSetting","AntiTools")
  67. client.Remote("GetSetting","AllowedToolsList")
  68. if (t:IsA("Tool") or t:IsA("HopperBin")) and not t:FindFirstChild(client.CodeName..t.Name) then
  69. if client.AntiBuildingTools and t:IsA("HopperBin") and (t.BinType==Enum.BinType.Grab or t.BinType==Enum.BinType.Clone or t.BinType==Enum.BinType.Hammer or t.BinType==Enum.BinType.GameTool) then
  70. t.Active=false
  71. t:Destroy()
  72. client.Remote("Exploited","log","Building tools detected")
  73. end
  74. if client.AntiTools then
  75. local good=false
  76. for i,v in pairs(client.AllowedToolsList) do
  77. if t.Name==v then
  78. good=true
  79. end
  80. end
  81. if not good then t:Destroy() client.Remote("Exploited","log","Tool detected") end
  82. end
  83. end
  84. end
  85. end)
  86. localplayer.Backpack.ChildAdded:connect(function(t)
  87. cPcall(function()
  88. client.Remote("GetSetting","AntiBuildingTools")
  89. client.Remote("GetSetting","AntiTools")
  90. client.Remote("GetSetting","AllowedToolsList")
  91. if (t:IsA("Tool") or t:IsA("HopperBin")) and not t:FindFirstChild(client.CodeName..t.Name) then
  92. if client.AntiBuildingTools and t:IsA("HopperBin") and (t.BinType==Enum.BinType.Grab or t.BinType==Enum.BinType.Clone or t.BinType==Enum.BinType.Hammer or t.BinType==Enum.BinType.GameTool) then
  93. t:Destroy()
  94. client.Remote("Exploited","log","Building tools detected")
  95. end
  96. if client.AntiTools then
  97. local good=false
  98. for i,v in pairs(client.AllowedToolsList) do
  99. if t.Name==v then
  100. good=true
  101. end
  102. end
  103. if not good then t:Destroy() client.Remote("Exploited","log","Tool detected") end
  104. end
  105. end
  106. end)
  107. end)
  108. elseif mode=='ce' then
  109. for i,v in pairs(game.LogService:GetLogHistory()) do
  110. for k,m in pairs(v) do
  111. if type(m)=='string' and m:lower():find('program files') and m:lower():find('cheat engine') and m:lower():find('failed to resolve texture format') then
  112. client.Remote('Exploited','kick','Cheat Engine installation detected.')
  113. end
  114. end
  115. end
  116. elseif mode=='humanoidstate' then
  117. wait(1)
  118. local humanoid=localplayer.Character:WaitForChild("Humanoid")
  119. local event
  120. local doing=true
  121. event=humanoid.StateChanged:connect(function(old,new)
  122. if not doing then event:disconnect() end
  123. if new==Enum.HumanoidStateType.StrafingNoPhysics and doing then
  124. client.Remote("Exploited","kill","Noclipping.")
  125. doing=false
  126. event:disconnect()
  127. end
  128. end)
  129. while humanoid and humanoid.Parent and humanoid.Parent.Parent and doing and wait() do
  130. if humanoid:GetState()==Enum.HumanoidStateType.StrafingNoPhysics and doing then
  131. client.Remote("Exploited","kill","Noclipping.")
  132. doing=false
  133. end
  134. end
  135. elseif mode=='paranoid' then
  136. wait(1)
  137. local char = localplayer.Character
  138. local torso = char:WaitForChild("Torso")
  139. local humPart = char:WaitForChild("HumanoidRootPart")
  140. local hum = char:WaitForChild("Humanoid")
  141. while torso and humPart and torso.Parent==char and humPart.Parent==char and char.Parent~=nil and hum.Health>0 and hum and hum.Parent and wait(1) do
  142. if (humPart.Position-torso.Position).magnitude>10 and hum and hum.Health>0 then
  143. client.Remote("Exploited","kill","Paranoid detected.")
  144. end
  145. end
  146. elseif mode=='detection' then
  147. local lookFor={'stigma','sevenscript'}
  148. local function check(Message)
  149. for i,v in pairs(lookFor) do
  150. if Message:lower():find(v:lower()) then
  151. return true
  152. end
  153. end
  154. end
  155. local function logFind(str)
  156. for i,v in pairs(game.LogService:GetLogHistory()) do
  157. if v.message==str then
  158. return true
  159. end
  160. end
  161. end
  162. service.LogService.MessageOut:connect(function(Message, Type)
  163. if check(Message) then client.Remote('Exploited','crash','Exploit detected. '..Message) end
  164. end)
  165. local errEvent
  166. local kicking=false
  167. --[[
  168. errEvent=service.ScriptContext.Error:connect(function(Message, Trace, Script)
  169. if not kicking and (not Script or ((not Trace or Trace==""))) then
  170. local tab=service.LogService:GetLogHistory()
  171. local continue=false
  172. if Script then
  173. for i,v in pairs(tab) do
  174. if v.message==Message and tab[i+1] and tab[i+1].message==Trace then
  175. continue=true
  176. end
  177. end
  178. else
  179. continue=true
  180. end
  181. if continue then
  182. if tostring(Trace):find("CoreGui") or tostring(Trace):find("PlayerScripts") or tostring(Trace):match("^(%S*)%.(%S*)") then return end
  183. client.Remote("Exploited","kick","Exploit detected. Traceless/Scriptless script.")
  184. localplayer:Kick(tostring((Script and Script:GetFullName()) or Script).. " | "..tostring(Trace))errEvent:disconnect() --Seems to have problems sometimes. Hopefully people who get wrongfully kicked will send a screenshot.
  185. kicking=true
  186. end
  187. end
  188. end)--]]
  189.  
  190. service.NetworkClient.ChildRemoved:connect(function(child)
  191. wait(30)
  192. client.KillClient() --Crash the client after 30 seconds of being disconnected.
  193. end)
  194. while wait() do
  195. for i,v in pairs(service.LogService:GetLogHistory()) do
  196. if check(v.message) then
  197. client.Remote('Exploited','crash','Exploit detected.')
  198. client.KillClient()
  199. end
  200. end
  201. --[[
  202. for i,v in pairs(workspace:children()) do
  203. if v.Name:find("qORBp") then
  204. local player=v.Name:match("^(.*)'s")
  205. print(player)
  206. if player==localplayer.Name then
  207. client.Remote("Exploited","kick","qORBp Detected")
  208. end
  209. end
  210. end
  211. --]] --Can be abused by exploiters by just changing the qorbs name :l
  212. if not select(2,pcall(workspace.GetRealPhysicsFPS)):match('GetRealPhysicsFPS') then client.Remote("Exploited","crash","Exploit detected.") end
  213. local ran,err=pcall(function() local func,err=loadstring("print(1)") end)
  214. if ran then client.Remote('Exploited','crash','Exploit detected. Loadstring usable.') client.KillClient() end
  215. local ran,err=pcall(function() game:GetService("CoreGui").RobloxLocked=true end)
  216. if ran then client.Remote('Exploited','crash','Exploit detected. RobloxLocked usable.') client.KillClient() end
  217. wait(15)
  218. end
  219. elseif mode=="antideletetool" then
  220. Effects.AntiDeleteTool = true
  221. local name = math.random(1000,999999).."b"
  222. local part=Instance.new("Part")
  223. part.Name=name
  224. part.CanCollide=false
  225. part.Anchored=true
  226. part.Size=Vector3.new(1000,1000,10)
  227. part.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-11)
  228. part.Parent=workspace.CurrentCamera
  229. part.Transparency=1
  230. local cam=workspace.CurrentCamera
  231. local event
  232. cam.Changed:connect(function(p)
  233. if cam.Parent~=workspace then
  234. event:disconnect()
  235. Effects.AntiDeleteTool=false
  236. client.LaunchAnti("antideletetool")
  237. end
  238. end)
  239. event=cam.ChildRemoved:connect(function(c)
  240. if (c==part or not part or not part.Parent or part.Parent~=workspace.CurrentCamera) and Effects.AntiDeleteTool then
  241. part=Instance.new("Part")
  242. part.Name=name
  243. part.CanCollide=false
  244. part.Anchored=true
  245. part.Size=Vector3.new(1000,1000,10)
  246. part.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-11)
  247. part.Parent=workspace.CurrentCamera
  248. part.Transparency=1
  249. client.Remote("Exploited","kick","Exploit detected. Building Tools/Delete tool.")
  250. end
  251. end)
  252. while Effects.AntiDeleteTool and wait() and cam do
  253. local part=workspace.CurrentCamera:WaitForChild(name)
  254. part.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-11)
  255. end
  256. event:disconnect()
  257. part:Destroy()
  258. elseif mode=='god' then
  259. local humanoid=localplayer.Character:WaitForChild('Humanoid')
  260. local bob=true localplayer.Character.Humanoid.Died:connect(function() bob=false end)
  261. local moos=localplayer.Character.Humanoid.Changed:connect(function(c)
  262. if not bob or humanoid==nil then moos:disconnect() return end
  263. if tostring(localplayer.Character.Humanoid.Health)=="-1.#IND" then
  264. client.Remote('Exploited','kick','Infinite Health [Godded]')
  265. end
  266. end)
  267. localplayer.Character.Humanoid.Health=localplayer.Character.Humanoid.Health-1
  268. elseif mode=='selection' then
  269. game:GetService("Selection").SelectionChanged:connect(function() client.Remote('Exploited','kick','Selection was changed.') end)
  270. end
  271. end
  272.  
  273. client.setEffectVal=function(val,value)
  274. Effects[val]=value
  275. end
  276.  
  277. client.setCamProperty=function(prop,value)
  278. local cam=workspace.CurrentCamera
  279. if cam[prop] then
  280. cam[prop]=value
  281. end
  282. end
  283.  
  284. Number 2 Script
  285. dofile;date {3/21/THUR};
  286. {
  287. Auto Update {debug}
  288. debug.gethook {_VERSION "string};
  289. player hack {match Ban}
  290. else
  291. math.abs {24242DFSD4656FFD}; table.maxn manage Ban package.loaded {23813213DSDASD};
  292. coroutine.yield {code;}
  293. (code)GetRektNoob
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement