Vihaan Infinite Yield
Key Required

Vihaan Infinite Yield

Brookhaven 🏡RPvihaaaaaanvihaaaaaan 5.2K views 992 executesUpdated Jul 9, 2026
Unrated
00
Lua Script•273 lines (10369 chars)
-- Ensure the game is fully loaded before building the UI
if not game:IsLoaded() then game.Loaded:Wait() end

-- Prevent duplicate UI instances if you run the script multiple times
if game:GetService("CoreGui"):FindFirstChild("VihaanIYBar") then
    game:GetService("CoreGui").VihaanIYBar:Destroy()
end

-- Create the ScreenGui
local VihaanIYBar = Instance.new("ScreenGui")
VihaanIYBar.Name = "VihaanIYBar"
VihaanIYBar.Parent = game:GetService("CoreGui")
VihaanIYBar.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

-- Main Container Frame
local MainContainer = Instance.new("Frame")
MainContainer.Name = "MainContainer"
MainContainer.Size = UDim2.new(0, 280, 0, 205) 
MainContainer.Position = UDim2.new(1, -290, 1, -215) 
MainContainer.BackgroundTransparency = 1
MainContainer.Active = true
MainContainer.Draggable = true
MainContainer.Parent = VihaanIYBar

-- Create the Bottom Right Holder Bar
local BarFrame = Instance.new("Frame")
BarFrame.Name = "BarFrame"
BarFrame.Size = UDim2.new(1, 0, 0, 30)
BarFrame.Position = UDim2.new(0, 0, 0, 0)
BarFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15) 
BarFrame.BorderSizePixel = 0
BarFrame.ZIndex = 2
BarFrame.Parent = MainContainer

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 5)
UICorner.Parent = BarFrame

-- Title Text (VIHAAN INFINITE YIELD)
local Title = Instance.new("TextLabel")
Title.Name = "Title"
Title.Size = UDim2.new(0, 180, 1, 0)
Title.Position = UDim2.new(0, 12, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "VIHAAN INFINITE YIELD"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextSize = 14
Title.Font = Enum.Font.GothamBold
Title.TextXAlignment = Enum.TextXAlignment.Left
Title.ZIndex = 3
Title.Parent = BarFrame

-- Close Button
local CloseButton = Instance.new("TextButton")
CloseButton.Name = "CloseButton"
CloseButton.Size = UDim2.new(0, 22, 0, 22)
CloseButton.Position = UDim2.new(1, -25, 0, 4)
CloseButton.BackgroundTransparency = 1
CloseButton.Text = "✕"
CloseButton.TextColor3 = Color3.fromRGB(200, 50, 50)
CloseButton.TextSize = 14
CloseButton.Font = Enum.Font.GothamBold
CloseButton.ZIndex = 3
CloseButton.Parent = BarFrame

-- Content Container Panel
local SlideFrame = Instance.new("Frame")
SlideFrame.Name = "SlideFrame"
SlideFrame.Size = UDim2.new(1, 0, 0, 170) 
SlideFrame.Position = UDim2.new(0, 0, 0, 32)
SlideFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
SlideFrame.BorderSizePixel = 0
SlideFrame.ZIndex = 1
SlideFrame.Parent = MainContainer

local SlideCorner = Instance.new("UICorner")
SlideCorner.CornerRadius = UDim.new(0, 5)
SlideCorner.Parent = SlideFrame

local UIListLayout = Instance.new("UIListLayout")
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 4)
UIListLayout.Parent = SlideFrame

local function createCommandRow(text, color)
    local btn = Instance.new("TextButton")
    btn.Size = UDim2.new(1, 0, 0, 30)
    btn.BackgroundColor3 = color or Color3.fromRGB(22, 22, 22)
    btn.BorderSizePixel = 0
    btn.Text = "     " .. text
    btn.TextColor3 = Color3.fromRGB(220, 220, 220)
    btn.TextSize = 13
    btn.Font = Enum.Font.Gotham
    btn.TextXAlignment = Enum.TextXAlignment.Left
    btn.Parent = SlideFrame
    
    local rowCorner = Instance.new("UICorner")
    rowCorner.CornerRadius = UDim.new(0, 4)
    rowCorner.Parent = btn
    
    return btn
end

-- Create Menu Rows
local FlyBtn = createCommandRow("Fly (50 Speed)")
local NoSitBtn = createCommandRow("No Sit")
local AntiFlingBtn = createCommandRow("Anti-Fling")
local RejoinBtn = createCommandRow("Rejoin Server", Color3.fromRGB(40, 15, 15))
local HopBtn = createCommandRow("Server Hop", Color3.fromRGB(15, 30, 40))


-- ==================== NO-LAG C_FRAME FLIGHT ENGINE ====================

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")

local flyActive, noSitActive, antiFlingActive = false, false, false
local flyConnection = nil

local function toggleFly()
    if flyActive then
        flyActive = false
        FlyBtn.TextColor3 = Color3.fromRGB(220, 220, 220)
        FlyBtn.Text = "     Fly (50 Speed)"
        if flyConnection then 
            flyConnection:Disconnect() 
            flyConnection = nil 
        end
    else
        flyActive = true
        FlyBtn.TextColor3 = Color3.fromRGB(120, 255, 120)
        FlyBtn.Text = "     Fly (50 Speed) - ACTIVE"
        
        local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
        local torso = character:WaitForChild("HumanoidRootPart")
        local camera = workspace.CurrentCamera
        
        -- FORCE LIFT INTO THE AIR IMMEDIATELY
        torso.CFrame = torso.CFrame * CFrame.new(0, 15, 0)
        
        local speed = 50
        
        -- High frequency position rendering framework
        flyConnection = RunService.Heartbeat:Connect(function(deltaTime)
            if not flyActive or not torso or not torso.Parent then
                if flyConnection then flyConnection:Disconnect() flyConnection = nil end
                return
            end
            
            local moveVector = Vector3.new(0, 0, 0)
            
            -- Detect precise key presses
            if UIS:IsKeyDown(Enum.KeyCode.W) then moveVector = moveVector + camera.CFrame.LookVector end
            if UIS:IsKeyDown(Enum.KeyCode.S) then moveVector = moveVector - camera.CFrame.LookVector end
            if UIS:IsKeyDown(Enum.KeyCode.A) then moveVector = moveVector - camera.CFrame.RightVector end
            if UIS:IsKeyDown(Enum.KeyCode.D) then moveVector = moveVector + camera.CFrame.RightVector end
            if UIS:IsKeyDown(Enum.KeyCode.Space) or UIS:IsKeyDown(Enum.KeyCode.E) then 
                moveVector = moveVector + Vector3.new(0, 1, 0) 
            end
            if UIS:IsKeyDown(Enum.KeyCode.LeftShift) or UIS:IsKeyDown(Enum.KeyCode.Q) then 
                moveVector = moveVector - Vector3.new(0, 1, 0) 
            end
            
            -- Eliminate falling velocities entirely by locking position frame updates
            torso.Velocity = Vector3.new(0, 0, 0)
            
            if moveVector.Magnitude > 0 then
                -- Direct structural teleport translation (Bypasses physics-blocking completely)
                torso.CFrame = CFrame.new(torso.Position + (moveVector.Unit * speed * deltaTime), torso.Position + camera.CFrame.LookVector)
            else
                -- Freeze mid-air anchor position perfectly when keys are released
                torso.CFrame = CFrame.new(torso.Position, torso.Position + camera.CFrame.LookVector)
            end
        end)
    end
end

-- No Sit Function
local function toggleNoSit()
    if noSitActive then
        noSitActive = false
        NoSitBtn.TextColor3 = Color3.fromRGB(220, 220, 220)
        NoSitBtn.Text = "     No Sit"
    else
        noSitActive = true
        NoSitBtn.TextColor3 = Color3.fromRGB(120, 255, 120)
        NoSitBtn.Text = "     No Sit - ACTIVE"
        
        task.spawn(function()
            while noSitActive do
                task.wait(0.1)
                if LocalPlayer.Character then
                    local hum = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
                    if hum then hum.Sit = false end
                end
            end
        end)
    end
end

-- Anti-Fling Function
local function toggleAntiFling()
    if antiFlingActive then
        antiFlingActive = false
        AntiFlingBtn.TextColor3 = Color3.fromRGB(220, 220, 220)
        AntiFlingBtn.Text = "     Anti-Fling"
    else
        antiFlingActive = true
        AntiFlingBtn.TextColor3 = Color3.fromRGB(120, 255, 120)
        AntiFlingBtn.Text = "     Anti-Fling - ACTIVE"
        
        task.spawn(function()
            while antiFlingActive do
                task.wait(0.2)
                if LocalPlayer.Character then
                    local root = LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
                    if root then
                        for _, player in pairs(Players:GetPlayers()) do
                            if player ~= LocalPlayer and player.Character then
                                for _, part in pairs(player.Character:GetChildren()) do
                                    if part:IsA("BasePart") then
                                        local pconn
                                        pconn = RunService.Stepped:Connect(function()
                                            if not antiFlingActive or not LocalPlayer.Character or not player.Character then 
                                                pconn:Disconnect() 
                                                return 
                                            end
                                            part.CanCollide = false
                                            root.Velocity = Vector3.new(0,0,0)
                                            root.RotVelocity = Vector3.new(0,0,0)
                                        end)
                                    end
                                end
                            end
                        end
                    end
                end
            end
        end)
    end
end

-- Close UI
CloseButton.MouseButton1Click:Connect(function()
    if flyConnection then flyConnection:Disconnect() end
    VihaanIYBar:Destroy()
end)

-- Button Action Connectors
FlyBtn.MouseButton1Click:Connect(toggleFly)
NoSitBtn.MouseButton1Click:Connect(toggleNoSit)
AntiFlingBtn.MouseButton1Click:Connect(toggleAntiFling)

RejoinBtn.MouseButton1Click:Connect(function()
    game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, LocalPlayer)
end)

HopBtn.MouseButton1Click:Connect(function()
    local Http = game:GetService("HttpService")
    local TPS = game:GetService("TeleportService")
    local Api = "https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100"
    
    local Raw = game:HttpGet(Api)
    local Servers = Http:JSONDecode(Raw)
    for _, server in pairs(Servers.data) do
        if server.playing < server.maxPlayers and server.id ~= game.JobId then
            TPS:TeleportToPlaceInstance(game.PlaceId, server.id, LocalPlayer)
            break
        end
    end
end)

Features & Information

⚔️
#InfiniteYield

Community Comments (0)

No comments yet for this script.

More Scripts for Brookhaven 🏡RP