---
title: "Universal Orbit Nearest Player Open Source | Universal Roblox Script - ScriptBlox"
description: "Universal Orbit Nearest Player Open Source for any Roblox game: Literally, Orbit anyone you want when you press V"
canonical_url: "https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076"
meta:
  "og:description": "Universal Orbit Nearest Player Open Source for any Roblox game: Literally, Orbit anyone you want when you press V"
  "og:image": "https://scriptblox.com/images/script/5946880-1692070029452.webp"
  "og:title": "Universal Orbit Nearest Player Open Source | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Universal Orbit Nearest Player Open Source for any Roblox game: Literally, Orbit anyone you want when you press V"
  "twitter:image": "https://scriptblox.com/images/script/5946880-1692070029452.webp"
  "twitter:title": "Universal Orbit Nearest Player Open Source | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/5946880-1692070029452.webp)

# ![Script Verified](https://scriptblox.com/_ipx/_/images/verified.webp)** Universal Orbit Nearest Player Open Source**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![BeboMods](https://scriptblox.com/images/photo/6227c42f7944271798ea1b15-1744552011109.jpeg) [BeboMods](https://scriptblox.com/u/BeboMods) ![Verified Badge](https://scriptblox.com/_ipx/_/images/verified.webp)Lv 15Chart topper**

3 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

Literally, Orbit anyone you want when you press V

## **Updates **

1. Mar 27, 2025

   ****Script edited:**** Create script

[View Raw](https://scriptblox.com/raw/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076)

```
local players = game:GetService("Players")
local userInputService = game:GetService("UserInputService")
local runService = game:GetService("RunService")

local targetPlayer = nil
local orbitDistance = 5 -- Orbit Distance
local orbitSpeed = 5 -- Orbit Speed ofc dummy don't touch anything else
local orbitToggleKey = Enum.KeyCode.V -- Change V to whatever key bind you like 
local isOrbiting = false

local function getNearestPlayer()
    local nearestDistance = math.huge
    local nearestPlayer = nil

    local localCharacter = players.LocalPlayer.Character
    if localCharacter then
        local localRootPart = localCharacter:FindFirstChild("HumanoidRootPart")
        if localRootPart then
            for _, player in pairs(players:GetPlayers()) do
                if player ~= players.LocalPlayer then
                    local character = player.Character
                    if character and character:FindFirstChild("HumanoidRootPart") then
                        local distance = (character.HumanoidRootPart.Position - localRootPart.Position).Magnitude
                        if distance < nearestDistance then
                            nearestDistance = distance
                            nearestPlayer = player
                        end
                    end
                end
            end
        end
    end

    return nearestPlayer
end

local function startOrbit()
    targetPlayer = getNearestPlayer()
    isOrbiting = true
end


```

## **Comments **

**2**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076)

![BeboMods's profile picture](https://scriptblox.com/images/photo/6227c42f7944271798ea1b15-1744552011109.jpeg)

[**BeboMods**](https://scriptblox.com/u/BeboMods)Verified

![Verified Badge](https://scriptblox.com/_ipx/_/images/verified.webp)

Lv 15**Uploader**3 years ago(edited)

press V

1

![Guelgamesbr's profile picture](https://scriptblox.com/images/photo/622a85a995c44b25d7229661-1697139210580.jpeg)

[**Guelgamesbr**](https://scriptblox.com/u/Guelgamesbr)3 years ago(edited)

how does it works

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076#script","url":"https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076","name":"Universal Orbit Nearest Player Open Source","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"BeboMods","url":"https://scriptblox.com/u/BeboMods"},"datePublished":"2023-08-15T03:27:09.498Z","image":"https://scriptblox.com/images/script/5946880-1692070029452.webp","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076#webpage","@type":"WebPage","description":"Universal Orbit Nearest Player Open Source for any Roblox game: Literally, Orbit anyone you want when you press V","name":"Universal Orbit Nearest Player Open Source | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Universal-Orbit-Nearest-Player-Open-Source-7076#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Universal Orbit Nearest Player Open Source","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
