Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.89 KB | None | 0 0
  1. --[[
  2. This is my script which I made for a group that needed one, and I decided to help them, this anti cheat took me like an hour to make, but I think it's decent, but bypassable, but it would take them some time. I hope this is good enough to accept me as scripter in Hidden Developers, I also uncopylocked the game which I tested my AC in so you know that I made it. I also named scripts differently so they don't seem suspicious to exploiters. Thank you.
  3.  
  4.  
  5. Game link: https://www.roblox.com/games/3236772309/MatthewCarnells-Place-Number-71
  6.  
  7. In case you can't be bothered to check the game, here are some of the scripts.
  8. ]]--
  9.  
  10. --This is the main AC script.
  11.  
  12.  
  13. local plr = game.Players.LocalPlayer
  14. local RS = game.ReplicatedStorage.RemoteEvent
  15. local reason = ""
  16. spawn(function()
  17. pcall(function()
  18. while wait() do
  19. if plr.Character.Humanoid.WalkSpeed > 16 then
  20. reason = "WalkSpeed Cheats"
  21. RS:FireServer(reason)
  22. break
  23. else if plr.Character.Humanoid.JumpPower>50 then
  24. reason = "JumpPower Cheats"
  25. RS:FireServer(reason)
  26. break
  27. else if plr.Character.Humanoid:GetState() == Enum.HumanoidStateType.StrafingNoPhysics then
  28. reason = "Strafe"
  29. RS:FireServer(reason)
  30. end
  31. end
  32. end
  33.  
  34. -------------------------
  35.  
  36. if plr.Backpack:FindFirstChild("UFC Pull") then
  37. if plr.Backpack["UFC Pull"].Handle.Size ~= Vector3.new(2, 1.2, 1) then
  38. reason = "Bigger Pull Tool"
  39. RS:FireServer(reason)
  40. break
  41. end
  42. end
  43. if plr.Backpack:FindFirstChild("UFC Punch") then
  44. if plr.Backpack["UFC Punch"].Handle.Size ~= Vector3.new(1.2, 1.2, 1) then
  45. reason = "Bigger Punch Tool"
  46. RS:FireServer(reason)
  47. break
  48. end
  49. end
  50. if plr.Backpack:FindFirstChild("UFC Push") then
  51. if plr.Backpack["UFC Push"].Handle.Size ~= Vector3.new(2, 1.2, 1) then
  52. reason = "Bigger Push Tool"
  53. RS:FireServer(reason)
  54. break
  55. end
  56. end
  57.  
  58. ------------------------------
  59.  
  60. if plr.Character:FindFirstChild("UFC Pull") then
  61. if plr.Character:FindFirstChild("UFC Pull").Handle.Size ~= Vector3.new(2, 1.2, 1)  then
  62. reason = "Bigger Pull Tool"
  63. RS:FireServer(reason)
  64. break
  65. end
  66. end
  67. if plr.Character:FindFirstChild("UFC Push") then
  68. if plr.Character:FindFirstChild("UFC Push").Handle.Size ~= Vector3.new(2, 1.2, 1)  then
  69. reason = "Bigger Push Tool"
  70. RS:FireServer(reason)
  71. break
  72. end
  73. end
  74. if plr.Character:FindFirstChild("UFC Punch") then
  75. if plr.Character:FindFirstChild("UFC Punch").Handle.Size ~= Vector3.new(1.2, 1.2, 1)  then
  76. reason = "Bigger Punch Tool"
  77. RS:FireServer(reason)
  78. break
  79. end
  80. end
  81.  
  82. ---------------------
  83.  
  84.  
  85.  
  86. if game.Workspace.Gravity < 180 or game.Workspace.Gravity>210 then
  87. reason = "Gravity change"
  88. RS:FireServer(reason)
  89. break
  90. end
  91.  
  92. --------------------
  93. local function Testing()
  94. for i,v in pairs(game.Players:GetChildren())do
  95. if v.Character:FindFirstChild("HumanoidRootPart").Size ~= Vector3.new(2, 2, 1) then
  96. return true
  97. end
  98. end
  99. end
  100.  
  101. local check = Testing()
  102.  
  103. if check == true then
  104. reason = "Changed HumanoidRootPart"
  105. RS:FireServer(reason)
  106. break
  107. end
  108. end
  109. end)
  110. end)
  111.  
  112. -------------
  113. --Script which fires the remote
  114. -------------
  115.  
  116. local RS = game.ReplicatedStorage:WaitForChild("RemoteEvent")
  117.  
  118.  
  119. RS.OnServerEvent:Connect(function(player,reason)
  120.  
  121. local http = game:GetService("HttpService")
  122. local Data = {
  123.     ["content"] = player.Name..": "..reason
  124. }
  125.  
  126. Data = http:JSONEncode(Data)
  127.  
  128. http:PostAsync("HIDDEN FOR REASONS", Data)
  129.  
  130. player:Kick(player.Name..": "..reason)
  131.  
  132.  
  133. end)
  134.  
  135.  
  136. --------------
  137. --Script that is hidden that checks if anti cheat is destroyed
  138. --------------
  139.  
  140.  
  141. wait(0.5)
  142. script.Parent = nil
  143. local plr = game.Players.LocalPlayer
  144. local RS = game.ReplicatedStorage
  145. local reason = ""
  146. spawn(function()
  147. while wait() do
  148. if not RS:FindFirstChild("RemoteEvent") then
  149.  
  150. plr:Kick("Stop omg")
  151.  
  152. end
  153. if not game.StarterPlayer.StarterCharacterScripts:FindFirstChild("CameraView") then
  154. if RS:FindFirstChild("RemoteEvent") then
  155. reason = "Did you really think that that would work?"
  156. RS.RemoteEvent:FireServer(reason)
  157. break
  158.  
  159. end
  160. end
  161. end
  162. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement