Universal Script 📌
79.5k Views
218 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
Script hub
53.6k
14.5k
Bumped 21 minutes ago
Key System
Paid
Script hub
172
460
Bumped 51 minutes ago
Key System
Universal Script 📌
1.3M
592.0k
Bumped 3 hours ago
Script hub
2.5k
19.5k
Bumped 4 hours ago
Universal Script 📌
323
606
Approved 5 hours ago
Universal Script 📌
86
860
Approved 6 hours ago
Universal Script 📌
118
97
Approved 6 hours ago