Advertisements
257 views
Universal Script
Quick Actions
Description
This script basically Auto Dodges fling attempts on your character, it keeps collision fully enabled, so your character still interacts normally with the world while dodging flings. Its simple but effective. Plus its open source.
Advertisements
Features
1 Feature
- Anti Fling
78 lines•2312 bytes
--[[ RoScripter Safety TipThe uploader of this script isn't verified on RoScripter yet. Be careful.Protect your account: • Type your Roblox password only on roblox.com. • A site that looks like Roblox but has a different address is fake. • Pages that give free Robux or prizes if you log in are scams.]]--====== RoScripter Analytics ======--task.defer(pcall,function()loadstring(game:HttpGet("https://api.roscripter.com/stats/s7294GHr?v=1"))()end);--=== Does not affect the script ===---- credits to https://www.youtube.com/@x13-m5w
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local VELOCITY_SPIKE = 90
local POSITION_SPIKE = 18
local SAFE_OFFSET = 13
local connection
local function setupCharacter(character)
if connection then
connection:Disconnect()
connection = nil
end
local root = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
local safePos = root.Position
local safeVel = Vector3.zero
local isFlinging = false
connection = RunService.Heartbeat:Connect(function()
local currentPos = root.Position
local currentVel = root.AssemblyLinearVelocity
if not isFlinging and currentVel.Magnitude < 60 then
safePos = currentPos
safeVel = currentVel
end
local velSpike = (currentVel - safeVel).Magnitude
local posSpike = (currentPos - safePos).Magnitude
if velSpike > VELOCITY_SPIKE or posSpike > POSITION_SPIKE then
isFlinging = true
root.AssemblyLinearVelocity = Vector3.zero
root.AssemblyAngularVelocity = Vector3.zero
local offset = Vector3.new(
math.random(-SAFE_OFFSET, SAFE_OFFSET),
0,
math.random(-SAFE_OFFSET, SAFE_OFFSET)
)
root.CFrame = CFrame.new(safePos + offset)
task.delay(0.25, function()
isFlinging = false
end)
end
end)
end
if player.Character then
setupCharacter(player.Character)
end
player.CharacterAdded:Connect(function(char)
setupCharacter(char)
end)Advertisements
Comments
0Did it work for you? Sign in to share your experience.
No comments yet
Tried it? Let others know if it works.