Universal Script 📌
79.5k Views
183 Executions

Objects orbit universal

Universal Script 📌
Member666
Member666Published 10
2 years ago
Get an 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

Yes ok no idk lol

Updates

  1. Script edited: Create script

View Raw
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local orbitDistance = 10
local orbitSpeed = 2
local orbitWidth = 5
local orbitHeight = 10 -- Высота орбиты
local orbitAngle = 0
local targetPlayerName = ""
local isOrbiting = false
local objectName = "redcoin"
local objectCount = 10
local objects = {}

local function findAllObjects(root, name)
    local objs = {}
    local function search(container)
        for _, child in ipairs(container:GetChildren()) do
            if child.Name == name then
                table.insert(objs, child)
            end
            search(child)
        end
    end
    search(root)
    return objs
end

local function updateObjectList()
    objects = findAllObjects(game, objectName)
end

local function getPlayerByName(name)
    for _, otherPlayer in pairs(Players:GetPlayers()) do
        if otherPlayer.Name == name then
            return otherPlayer
        end
    end
    return nil


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
65
1
Approved 2 hours ago
Script hub
11.3k
56.8k
Bumped 2 hours ago
Key System
Universal Script 📌
107
4
Approved 3 hours ago
Key System
Script hub
1.6M
2.1M
Bumped 3 hours ago
Key System

Script hub

#14 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
143
13
Approved 3 hours ago
Universal Script 📌
108
1
Approved 3 hours ago
Universal Script 📌
147
11
Approved 3 hours ago
Universal Script 📌
134
9
Approved 3 hours ago