Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This Anti cheat Made by Mawin_CK is Simple and Easy to Read
- -- How to put this script?
- -- 1: Go to -> Starter player -> StarterCharacterScript
- -- 2: Create a Script(Not LocalScript) in StarterCharacterScript And Rename to Anything
- -- this Script Is Customable freely Adjust And Edit
- -- How Does Setting work?
- -- speed adjust how fast part follow player
- -- maxdist tell how much distance can player go far away from part which if player go far away from part 10 studs it gonna considering exploit
- -- maxheight tell how much can player go height if too height it gonna kick
- -- Well if you don't feel this script is good enough Just Optimize this script yourself
- task.wait(1)
- local acpart = Instance.new("Part")
- local ts = game:GetService("TweenService")
- acpart.Parent = script.Parent
- acpart.Position = script.Parent:WaitForChild("HumanoidRootPart").Position
- acpart.Color = Color3.new(1, 1, 1)
- acpart.Transparency = 0.5
- acpart.Anchored = true
- acpart.CanCollide = false
- acpart.CanTouch = false
- acpart.Size = Vector3.new(1, 1, 1)
- repeat
- task.wait()
- local root = script.Parent:WaitForChild("HumanoidRootPart")
- local humanoid = script.Parent:WaitForChild("Humanoid")
- -- setting
- local speed = 0.5
- local maxdist = 10
- local tween = ts:Create(acpart, TweenInfo.new(speed), {CFrame = root.CFrame})
- local dist = (root.Position - acpart.Position).Magnitude
- tween:Play()
- if dist >= maxdist then
- maxdist = dist
- game.Players:FindFirstChild(script.Parent.Name):Kick("Exploit")
- end
- -- Anti Fly (Working on Gui Fly v2-v3 Exploit)
- -- setting
- local maxheight = 5
- if humanoid:GetState() == Enum.HumanoidStateType.Swimming and math.floor(root.Position.Y) >= maxheight then
- game.Players:FindFirstChild(script.Parent.Name):Kick("Exploit Fly")
- end
- until script.Parent == nil or acpart.Parent == nil
- -- Anti Disabled / Destroy() (Optional)
- -- This Script is Server Sided so Ignore this
- spawn(function()
- repeat
- if script.Disabled then
- script.Disabled = false
- elseif script == nil then
- script:Clone().Parent = script.Parent
- end
- until script.Parent == nil
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement