Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // Constants \\ --
- -- [ Services ] --
- local Services = setmetatable({}, {__index = function(Self, Index)
- local NewService = game.GetService(game, Index)
- if NewService then
- Self[Index] = NewService
- end
- return NewService
- end})
- -- [ LocalPlayer ] --
- local LocalPlayer = Services.Players.LocalPlayer
- -- // Functions \\ --
- local function PlayerAdded(Player)
- local Detected = false
- local Character;
- local PrimaryPart;
- local function CharacterAdded(NewCharacter)
- Character = NewCharacter
- repeat
- wait()
- PrimaryPart = NewCharacter:FindFirstChild("HumanoidRootPart")
- until PrimaryPart
- Detected = false
- end
- CharacterAdded(Player.Character or Player.CharacterAdded:Wait())
- Player.CharacterAdded:Connect(CharacterAdded)
- Services.RunService.Heartbeat:Connect(function()
- if (Character and Character:IsDescendantOf(workspace)) and (PrimaryPart and PrimaryPart:IsDescendantOf(Character)) then
- if PrimaryPart.AssemblyAngularVelocity.Magnitude > 50 or PrimaryPart.AssemblyLinearVelocity.Magnitude > 100 then
- if Detected == false then
- local Text = "Fling Exploit detected, Player: " .. tostring(Player)
- local RainbowText = Instance.new("TextLabel")
- RainbowText.Text = Text
- RainbowText.Size = UDim2.new(1, 0, 0, 50) -- Adjust size as needed
- RainbowText.TextColor3 = Color3.fromRGB(255, 200, 0)
- RainbowText.Parent = script.Parent -- Change "script.Parent" to the parent object where you want to place the text
- while true do
- for hue = 0, 1, 0.01 do
- local color = Color3.fromHSV(hue, 1, 1)
- RainbowText.TextColor3 = color
- wait(0.05) -- Adjust the speed of the rainbow effect by changing the wait time
- end
- end
- Detected = true
- for i,v in ipairs(Character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- v.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
- v.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
- v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
- end
- end
- PrimaryPart.CanCollide = false
- PrimaryPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
- PrimaryPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
- PrimaryPart.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
- end
- end
- end)
- end
- -- // Event Listeners \\ --
- for i,v in ipairs(Services.Players:GetPlayers()) do
- if v ~= LocalPlayer then
- PlayerAdded(v)
- end
- end
- Services.Players.PlayerAdded:Connect(PlayerAdded)
- local LastPosition = nil
- Services.RunService.Heartbeat:Connect(function()
- pcall(function()
- local PrimaryPart = LocalPlayer.Character.PrimaryPart
- if PrimaryPart.AssemblyLinearVelocity.Magnitude > 250 or PrimaryPart.AssemblyAngularVelocity.Magnitude > 250 then
- PrimaryPart.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
- PrimaryPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
- PrimaryPart.CFrame = LastPosition
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "You were flung. Neutralizing velocity.";
- Color = Color3.fromRGB(255, 0, 0);
- })
- elseif PrimaryPart.AssemblyLinearVelocity.Magnitude < 50 or PrimaryPart.AssemblyAngularVelocity.Magnitude > 50 then
- LastPosition = PrimaryPart.CFrame
- end
- end)
- end)
- _G.AntiFlingConfig = {
- -- this will remove your rotational velocity every frame
- disable_rotation = true;
- -- this slows you down if you're moving too fast, works well but can give you a low gravity effect
- limit_velocity = true;
- limit_velocity_sensitivity = 150; -- how fast you have to be moving before you get slowed down
- limit_velocity_slow = 0; -- the amount of velocity you keep; a lower number increases how much you slow down by
- -- stops you from ragdolling or falling over and losing control
- anti_ragdoll = true;
- -- completely freezes you if someone gets too close to you
- anchor = false;
- smart_anchor = true; -- only anchors if someone is considered flinging, this likely won't detect many flings
- anchor_dist = 30; -- how close someone has to be to trigger anchor
- -- teleport away if someone gets too close
- teleport = false;
- smart_teleport = true; -- only teleports if someone is considered flinging, this likely won't detect many flings
- teleport_dist = 30; -- how close someone has to be to teleport you
- }
- -- run _G.disable() to disable the script completely
- loadstring(game:HttpGet('https://raw.githubusercontent.com/topitbopit/rblx/main/extra/better_antifling.lua'))()
- loadstring(game:HttpGet(('https://pastebin.com/raw/GxdesRQx'),true))()
- loadstring(game:HttpGet("https://scriptblox.com/raw/Universal-Script-antifling-script-ig-4705"))()
- -- Find the player's character
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- -- Function to toggle player collision
- local function togglePlayerCollision()
- humanoid:ChangeState(Enum.HumanoidStateType.Physics)
- end
- -- Call the function to initially disable player collision
- togglePlayerCollision()
- -- Connect the function to a key press event to toggle collision on and off
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.P then -- Change 'P' to any key you want
- humanoid:ChangeState(Enum.HumanoidStateType.Physics)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement