Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- 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.
- Game link: https://www.roblox.com/games/3236772309/MatthewCarnells-Place-Number-71
- In case you can't be bothered to check the game, here are some of the scripts.
- ]]--
- --This is the main AC script.
- local plr = game.Players.LocalPlayer
- local RS = game.ReplicatedStorage.RemoteEvent
- local reason = ""
- spawn(function()
- pcall(function()
- while wait() do
- if plr.Character.Humanoid.WalkSpeed > 16 then
- reason = "WalkSpeed Cheats"
- RS:FireServer(reason)
- break
- else if plr.Character.Humanoid.JumpPower>50 then
- reason = "JumpPower Cheats"
- RS:FireServer(reason)
- break
- else if plr.Character.Humanoid:GetState() == Enum.HumanoidStateType.StrafingNoPhysics then
- reason = "Strafe"
- RS:FireServer(reason)
- end
- end
- end
- -------------------------
- if plr.Backpack:FindFirstChild("UFC Pull") then
- if plr.Backpack["UFC Pull"].Handle.Size ~= Vector3.new(2, 1.2, 1) then
- reason = "Bigger Pull Tool"
- RS:FireServer(reason)
- break
- end
- end
- if plr.Backpack:FindFirstChild("UFC Punch") then
- if plr.Backpack["UFC Punch"].Handle.Size ~= Vector3.new(1.2, 1.2, 1) then
- reason = "Bigger Punch Tool"
- RS:FireServer(reason)
- break
- end
- end
- if plr.Backpack:FindFirstChild("UFC Push") then
- if plr.Backpack["UFC Push"].Handle.Size ~= Vector3.new(2, 1.2, 1) then
- reason = "Bigger Push Tool"
- RS:FireServer(reason)
- break
- end
- end
- ------------------------------
- if plr.Character:FindFirstChild("UFC Pull") then
- if plr.Character:FindFirstChild("UFC Pull").Handle.Size ~= Vector3.new(2, 1.2, 1) then
- reason = "Bigger Pull Tool"
- RS:FireServer(reason)
- break
- end
- end
- if plr.Character:FindFirstChild("UFC Push") then
- if plr.Character:FindFirstChild("UFC Push").Handle.Size ~= Vector3.new(2, 1.2, 1) then
- reason = "Bigger Push Tool"
- RS:FireServer(reason)
- break
- end
- end
- if plr.Character:FindFirstChild("UFC Punch") then
- if plr.Character:FindFirstChild("UFC Punch").Handle.Size ~= Vector3.new(1.2, 1.2, 1) then
- reason = "Bigger Punch Tool"
- RS:FireServer(reason)
- break
- end
- end
- ---------------------
- if game.Workspace.Gravity < 180 or game.Workspace.Gravity>210 then
- reason = "Gravity change"
- RS:FireServer(reason)
- break
- end
- --------------------
- local function Testing()
- for i,v in pairs(game.Players:GetChildren())do
- if v.Character:FindFirstChild("HumanoidRootPart").Size ~= Vector3.new(2, 2, 1) then
- return true
- end
- end
- end
- local check = Testing()
- if check == true then
- reason = "Changed HumanoidRootPart"
- RS:FireServer(reason)
- break
- end
- end
- end)
- end)
- -------------
- --Script which fires the remote
- -------------
- local RS = game.ReplicatedStorage:WaitForChild("RemoteEvent")
- RS.OnServerEvent:Connect(function(player,reason)
- local http = game:GetService("HttpService")
- local Data = {
- ["content"] = player.Name..": "..reason
- }
- Data = http:JSONEncode(Data)
- http:PostAsync("HIDDEN FOR REASONS", Data)
- player:Kick(player.Name..": "..reason)
- end)
- --------------
- --Script that is hidden that checks if anti cheat is destroyed
- --------------
- wait(0.5)
- script.Parent = nil
- local plr = game.Players.LocalPlayer
- local RS = game.ReplicatedStorage
- local reason = ""
- spawn(function()
- while wait() do
- if not RS:FindFirstChild("RemoteEvent") then
- plr:Kick("Stop omg")
- end
- if not game.StarterPlayer.StarterCharacterScripts:FindFirstChild("CameraView") then
- if RS:FindFirstChild("RemoteEvent") then
- reason = "Did you really think that that would work?"
- RS.RemoteEvent:FireServer(reason)
- break
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement