universal orbit script
Key RequiredUniversal

universal orbit script

Universal Scriptwhatssqwhatssq 853 views 219 executesUpdated Apr 7, 2026
Unrated
00
Lua Script•36 lines (1198 chars)
local TargetName = "name" 
local Radius = 2               
local Height = 0             
local Speed = 5                
local Smoothness = 1           

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

local function orbit()
    local targetPlayer = Players:FindFirstChild(TargetName)
    
    if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
        local targetPart = targetPlayer.Character.HumanoidRootPart
        local angle = tick() * Speed
        
        local x = math.cos(angle) * Radius
        local z = math.sin(angle) * Radius
        
        local targetPos = targetPart.Position + Vector3.new(x, Height, z)
        
        if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
            LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(targetPos, targetPart.Position)
        end
    end
end

local connection
connection = RunService.Heartbeat:Connect(function()
    if not TargetName or TargetName == "" then 
        connection:Disconnect() 
        return 
    end
    orbit()
end)

Features & Information

orbit
#universal

Community Comments (1)

FriedRiceIsYummyFriedRiceIsYummyApr 10, 2026

add toggle

More Scripts for Universal Scripts