Advertisement
C-H-4-0-S

Antifling Full

May 1st, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. -- // Notification & Text \\ --
  2.  
  3. game:GetService("StarterGui"):SetCore("SendNotification",{
  4. Title = "Made By CH40S_V1RUS";
  5. Text = "Enjoy!";
  6. Duration = 5;
  7. Icon = "rbxassetid://17325918531";
  8. })
  9.  
  10. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  11. Text = "[Server]: Made by CH40S_V1RUS"
  12. Color = Color3.fromRGB(255, 255, 255);
  13. })
  14. end
  15.  
  16. loadstring(game:HttpGet("https://pastebin.com/raw/B2dP3UE0"))()
  17.  
  18. -- // Constants \\ --
  19. -- [ Services ] --
  20. local Services = setmetatable({}, {__index = function(Self, Index)
  21. local NewService = game.GetService(game, Index)
  22. if NewService then
  23. Self[Index] = NewService
  24. end
  25. return NewService
  26. end})
  27.  
  28. -- [ LocalPlayer ] --
  29. local LocalPlayer = Services.Players.LocalPlayer
  30.  
  31. -- // Functions \\ --
  32. local function PlayerAdded(Player)
  33. local Detected = false
  34. local Character;
  35. local PrimaryPart;
  36.  
  37. local function CharacterAdded(NewCharacter)
  38. Character = NewCharacter
  39. repeat
  40. wait()
  41. PrimaryPart = NewCharacter:FindFirstChild("HumanoidRootPart")
  42. until PrimaryPart
  43. Detected = false
  44. end
  45.  
  46. CharacterAdded(Player.Character or Player.CharacterAdded:Wait())
  47. Player.CharacterAdded:Connect(CharacterAdded)
  48. Services.RunService.Heartbeat:Connect(function()
  49. if (Character and Character:IsDescendantOf(workspace)) and (PrimaryPart and PrimaryPart:IsDescendantOf(Character)) then
  50. if PrimaryPart.AssemblyAngularVelocity.Magnitude > 50 or PrimaryPart.AssemblyLinearVelocity.Magnitude > 100 then
  51. if Detected == false then
  52.  
  53. game:GetService("StarterGui"):SetCore("SendNotification",{
  54. Title = "Flinger found";
  55. Text = "Loaded";
  56. Duration = 5;
  57. Icon = "rbxassetid://17346585673";
  58. })
  59. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  60. Text = "[Fling detector]: Fling Exploit detected, Player: " .. tostring(Player);
  61. Color = Color3.fromRGB(255, 200, 0);
  62. })
  63. end
  64. Detected = true
  65. for i,v in ipairs(Character:GetDescendants()) do
  66. if v:IsA("BasePart") then
  67. v.CanCollide = false
  68. v.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  69. v.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  70. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  71. end
  72. end
  73. PrimaryPart.CanCollide = false
  74. PrimaryPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  75. PrimaryPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  76. PrimaryPart.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  77. end
  78. end
  79. end)
  80. end)
  81.  
  82. -- // Event Listeners \\ --
  83. for i,v in ipairs(Services.Players:GetPlayers()) do
  84. if v ~= LocalPlayer then
  85. PlayerAdded(v)
  86. end
  87. end
  88. Services.Players.PlayerAdded:Connect(PlayerAdded)
  89.  
  90. local LastPosition = nil
  91. Services.RunService.Heartbeat:Connect(function()
  92. pcall(function()
  93. local PrimaryPart = LocalPlayer.Character.PrimaryPart
  94. if PrimaryPart.AssemblyLinearVelocity.Magnitude > 250 or PrimaryPart.AssemblyAngularVelocity.Magnitude > 250 then
  95. PrimaryPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  96. PrimaryPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  97. PrimaryPart.CFrame = LastPosition
  98.  
  99.  
  100. game:GetService("StarterGui"):SetCore("SendNotification",{
  101. Title = "Antifling Has";
  102. Text = "Triggered";
  103. Duration = 5;
  104. Icon = "rbxassetid://17346595031";
  105. })
  106. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  107. Text = "[Antifling]: You were flung. So I flung him instead";
  108. Color = Color3.fromRGB(255, 200, 0);
  109. })
  110. elseif PrimaryPart.AssemblyLinearVelocity.Magnitude < 50 or PrimaryPart.AssemblyAngularVelocity.Magnitude > 50 then
  111. LastPosition = PrimaryPart.CFrame
  112. end
  113. end)
  114. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement