Advertisement
C-H-4-0-S

Test

Mar 29th, 2024
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. -- // Constants \\ --
  2. -- [ Services ] --
  3. local Services = setmetatable({}, {__index = function(Self, Index)
  4. local NewService = game.GetService(game, Index)
  5. if NewService then
  6. Self[Index] = NewService
  7. end
  8. return NewService
  9. end})
  10.  
  11. -- [ LocalPlayer ] --
  12. local LocalPlayer = Services.Players.LocalPlayer
  13.  
  14. -- // Functions \\ --
  15. local function PlayerAdded(Player)
  16. local Detected = false
  17. local Character;
  18. local PrimaryPart;
  19.  
  20. local function CharacterAdded(NewCharacter)
  21. Character = NewCharacter
  22. repeat
  23. wait()
  24. PrimaryPart = NewCharacter:FindFirstChild("HumanoidRootPart")
  25. until PrimaryPart
  26. Detected = false
  27. end
  28.  
  29. CharacterAdded(Player.Character or Player.CharacterAdded:Wait())
  30. Player.CharacterAdded:Connect(CharacterAdded)
  31. Services.RunService.Heartbeat:Connect(function()
  32. if (Character and Character:IsDescendantOf(workspace)) and (PrimaryPart and PrimaryPart:IsDescendantOf(Character)) then
  33. if PrimaryPart.AssemblyAngularVelocity.Magnitude > 50 or PrimaryPart.AssemblyLinearVelocity.Magnitude > 100 then
  34. if Detected == false then
  35. local Text = "Fling Exploit detected, Player: " .. tostring(Player)
  36. local RainbowText = Instance.new("TextLabel")
  37. RainbowText.Text = Text
  38. RainbowText.Size = UDim2.new(1, 0, 0, 50) -- Adjust size as needed
  39. RainbowText.TextColor3 = Color3.fromRGB(255, 200, 0)
  40. RainbowText.Parent = script.Parent -- Change "script.Parent" to the parent object where you want to place the text
  41.  
  42. while true do
  43. for hue = 0, 1, 0.01 do
  44. local color = Color3.fromHSV(hue, 1, 1)
  45. RainbowText.TextColor3 = color
  46. wait(0.05) -- Adjust the speed of the rainbow effect by changing the wait time
  47. end
  48. end
  49. Detected = true
  50. for i,v in ipairs(Character:GetDescendants()) do
  51. if v:IsA("BasePart") then
  52. v.CanCollide = false
  53. v.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  54. v.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  55. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  56. end
  57. end
  58. PrimaryPart.CanCollide = false
  59. PrimaryPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  60. PrimaryPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  61. PrimaryPart.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  62. end
  63. end
  64. end)
  65. end
  66.  
  67. -- // Event Listeners \\ --
  68. for i,v in ipairs(Services.Players:GetPlayers()) do
  69. if v ~= LocalPlayer then
  70. PlayerAdded(v)
  71. end
  72. end
  73. Services.Players.PlayerAdded:Connect(PlayerAdded)
  74.  
  75. local LastPosition = nil
  76. Services.RunService.Heartbeat:Connect(function()
  77. pcall(function()
  78. local PrimaryPart = LocalPlayer.Character.PrimaryPart
  79. if PrimaryPart.AssemblyLinearVelocity.Magnitude > 250 or PrimaryPart.AssemblyAngularVelocity.Magnitude > 250 then
  80. PrimaryPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
  81. PrimaryPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  82. PrimaryPart.CFrame = LastPosition
  83.  
  84. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  85. Text = "You were flung. Neutralizing velocity.";
  86. Color = Color3.fromRGB(255, 0, 0);
  87. })
  88. elseif PrimaryPart.AssemblyLinearVelocity.Magnitude < 50 or PrimaryPart.AssemblyAngularVelocity.Magnitude > 50 then
  89. LastPosition = PrimaryPart.CFrame
  90. end
  91. end)
  92. end)
  93.  
  94. _G.AntiFlingConfig = {
  95. -- this will remove your rotational velocity every frame
  96. disable_rotation = true;
  97.  
  98. -- this slows you down if you're moving too fast, works well but can give you a low gravity effect
  99. limit_velocity = true;
  100. limit_velocity_sensitivity = 150; -- how fast you have to be moving before you get slowed down
  101. limit_velocity_slow = 0; -- the amount of velocity you keep; a lower number increases how much you slow down by
  102.  
  103. -- stops you from ragdolling or falling over and losing control
  104. anti_ragdoll = true;
  105.  
  106. -- completely freezes you if someone gets too close to you
  107. anchor = false;
  108. smart_anchor = true; -- only anchors if someone is considered flinging, this likely won't detect many flings
  109. anchor_dist = 30; -- how close someone has to be to trigger anchor
  110.  
  111. -- teleport away if someone gets too close
  112. teleport = false;
  113. smart_teleport = true; -- only teleports if someone is considered flinging, this likely won't detect many flings
  114. teleport_dist = 30; -- how close someone has to be to teleport you
  115. }
  116. -- run _G.disable() to disable the script completely
  117.  
  118. loadstring(game:HttpGet('https://raw.githubusercontent.com/topitbopit/rblx/main/extra/better_antifling.lua'))()
  119.  
  120. loadstring(game:HttpGet(('https://pastebin.com/raw/GxdesRQx'),true))()
  121.  
  122. loadstring(game:HttpGet("https://scriptblox.com/raw/Universal-Script-antifling-script-ig-4705"))()
  123.  
  124. -- Find the player's character
  125. local player = game.Players.LocalPlayer
  126. local character = player.Character or player.CharacterAdded:Wait()
  127. local humanoid = character:WaitForChild("Humanoid")
  128.  
  129. -- Function to toggle player collision
  130. local function togglePlayerCollision()
  131. humanoid:ChangeState(Enum.HumanoidStateType.Physics)
  132. end
  133.  
  134. -- Call the function to initially disable player collision
  135. togglePlayerCollision()
  136.  
  137. -- Connect the function to a key press event to toggle collision on and off
  138. game:GetService("UserInputService").InputBegan:Connect(function(input)
  139. if input.KeyCode == Enum.KeyCode.P then -- Change 'P' to any key you want
  140. humanoid:ChangeState(Enum.HumanoidStateType.Physics)
  141. end
  142. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement