Advertisements

Silent Fling
83 views1 run
Universal Script

Silent Fling

Rratedx187kabout 1 month ago
  • Mobile
  • Universal
  • Open source

Quick Actions

Description

Silent Fling = hidden walk‑fling that triggers only when someone is close. Line 61 controls how close another player must be before Silent Fling activates, change the number to increase or decrease the detection radius. (Open source btw)

Advertisements

Features

1 Feature
  • Silent Fling
106 lines•3347 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/M2pHY9Yu?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 LocalPlayer = Players.LocalPlayer
local WalkFlingConnection

local LastNormalVelocity = Vector3.zero
local EffectEnabled = false

local function StopWalkFling()
    if WalkFlingConnection then
        WalkFlingConnection:Disconnect()
        WalkFlingConnection = nil
    end
end

local function GetNearestPlayerDistance(Root)
    local NearestDistance = math.huge

    for _, Player in ipairs(Players:GetPlayers()) do
        if Player ~= LocalPlayer then
            local Character = Player.Character
            local OtherRoot = Character and Character:FindFirstChild("HumanoidRootPart")

            if OtherRoot then
                local Distance = (Root.Position - OtherRoot.Position).Magnitude
                if Distance < NearestDistance then
                    NearestDistance = Distance
                end
            end
        end
    end

    return NearestDistance
end

local function StartWalkFling()
    local Character = LocalPlayer.Character
    if not Character then return end

    local Humanoid = Character:WaitForChild("Humanoid")
    local Root = Character:WaitForChild("HumanoidRootPart")

    StopWalkFling()

    Humanoid.Died:Once(function()
        StopWalkFling()
    end)

    WalkFlingConnection = RunService.Heartbeat:Connect(function()
        if not Root or not Root.Parent then
            StopWalkFling()
            return
        end

        local CurrentVelocity = Root.AssemblyLinearVelocity
        local NearestDistance = GetNearestPlayerDistance(Root)

        if NearestDistance <= 5 then
            if not EffectEnabled then
                LastNormalVelocity = CurrentVelocity
                EffectEnabled = true
            end

            Root.AssemblyLinearVelocity = CurrentVelocity * 100000 + Vector3.new(0, 100000, 0)

            task.spawn(function()
                RunService.RenderStepped:Wait()
                if WalkFlingConnection and Root and Root.Parent and EffectEnabled then
                    Root.AssemblyLinearVelocity = CurrentVelocity
                end
            end)

            task.spawn(function()
                RunService.Stepped:Wait()
                if WalkFlingConnection and Root and Root.Parent and EffectEnabled then
                    Root.AssemblyLinearVelocity = CurrentVelocity
                end
            end)
        else
            if EffectEnabled then
                Root.AssemblyLinearVelocity = LastNormalVelocity
                EffectEnabled = false
            else
                LastNormalVelocity = CurrentVelocity
            end
        end
    end)
end

StartWalkFling()

Advertisements

Comments

0

Did it work for you? Sign in to share your experience.

Sign in to comment

No comments yet

Tried it? Let others know if it works.