Advertisement
plytalent

anticr?

Jun 7th, 2020
1,350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.38 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then
  2.     game:GetService("Players").LocalPlayer.PlayerScripts.ChildAdded:Connect(function(obj)
  3.         if  game:GetService("Players"):FindFirstChild(obj.Name) then
  4.             print("Script CR REMOVED: ",v.Name)
  5.             obj:Destroy()
  6.         end
  7.     end)
  8.     game:GetService("ReplicatedStorage").ChildAdded:Connect(function(obj)
  9.         if  game:GetService("Players"):FindFirstChild(obj.Name) then
  10.             print("Remoted CR REMOVED: ",v.Name)
  11.             obj:Destroy()
  12.         end
  13.     end)
  14.     game:GetService("RunService").RenderStepped:Connect(function()
  15.         for _,v in pairs(game:GetService("Players").LocalPlayer.PlayerScripts:GetDescendants())do
  16.             coroutine.resume(coroutine.create(function()
  17.                 if game:GetService("Players"):FindFirstChild(v.Name) then
  18.                     print("Script CR REMOVED: ",v.Name)
  19.                     v:Destroy()
  20.                 end
  21.             end))
  22.         end
  23.         for _,v in pairs(game:GetService("ReplicatedStorage"):GetChildren())do
  24.             coroutine.resume(coroutine.create(function()
  25.                 if  game:GetService("Players"):FindFirstChild(v.Name) then
  26.                     print("Remoted CR REMOVED: ",v.Name)
  27.                     v:Destroy()
  28.                 end
  29.             end))
  30.         end
  31.     end)
  32. else
  33.     print("Run this As Client Pls")
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement