Advertisement
SigmaBoy456

Anti Cheat StarterCharacterScripts #753

Nov 23rd, 2024 (edited)
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. -- This Anti cheat Made by Mawin_CK is Simple and Easy to Read
  2. -- How to put this script?
  3. -- 1: Go to -> Starter player -> StarterCharacterScript
  4. -- 2: Create a Script(Not LocalScript) in StarterCharacterScript And Rename to Anything
  5. -- this Script Is Customable freely Adjust And Edit
  6. -- How Does Setting work?
  7. -- speed adjust how fast part follow player
  8. -- 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
  9. -- maxheight tell how much can player go height if too height it gonna kick
  10. -- Well if you don't feel this script is good enough Just Optimize this script yourself
  11. task.wait(1)
  12. local acpart = Instance.new("Part")
  13. local ts = game:GetService("TweenService")
  14. acpart.Parent = script.Parent
  15. acpart.Position = script.Parent:WaitForChild("HumanoidRootPart").Position
  16. acpart.Color = Color3.new(1, 1, 1)
  17. acpart.Transparency = 0.5
  18. acpart.Anchored = true
  19. acpart.CanCollide = false
  20. acpart.CanTouch = false
  21. acpart.Size = Vector3.new(1, 1, 1)
  22. repeat
  23. task.wait()
  24. local root = script.Parent:WaitForChild("HumanoidRootPart")
  25. local humanoid = script.Parent:WaitForChild("Humanoid")
  26. -- setting
  27. local speed = 0.5
  28. local maxdist = 10
  29. local tween = ts:Create(acpart, TweenInfo.new(speed), {CFrame = root.CFrame})
  30. local dist = (root.Position - acpart.Position).Magnitude
  31. tween:Play()
  32. if dist >= maxdist then
  33. maxdist = dist
  34. game.Players:FindFirstChild(script.Parent.Name):Kick("Exploit")
  35. end
  36. -- Anti Fly (Working on Gui Fly v2-v3 Exploit)
  37. -- setting
  38. local maxheight = 5
  39. if humanoid:GetState() == Enum.HumanoidStateType.Swimming and math.floor(root.Position.Y) >= maxheight then
  40. game.Players:FindFirstChild(script.Parent.Name):Kick("Exploit Fly")
  41. end
  42. until script.Parent == nil or acpart.Parent == nil
  43.  
  44. -- Anti Disabled / Destroy() (Optional)
  45. -- This Script is Server Sided so Ignore this
  46. spawn(function()
  47. repeat
  48. if script.Disabled then
  49. script.Disabled = false
  50. elseif script == nil then
  51. script:Clone().Parent = script.Parent
  52. end
  53. until script.Parent == nil
  54. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement