
415 Views
281 Executions
Orbitation Chroma
Universal Script 📌
CryptoCodeSupreme10K executions
8 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
⚠️This script was inspired by another script, the orbit script from (skele) I made some improvements to his script!⚠️ Improvements⭐: 1. Nicer hub✅ 2. Has new ways to orbit✅ 3. Set the orbit distance✅ 4. Set the spinning speed through the hub itself✅ Thanks again Skele for sharing your script😊
-- Orbitation Controller V1
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local player = Players.LocalPlayer
-- CONFIGURAÇÃO
local orbitSpeed = 10
local orbitRadius = 20 -- valor inicial maior que 10
local angle = 0
local orbitMode = "Player" -- "Player" ou "Block"
local orbiting = false
local blockVisible = true
-- VARIÁVEIS
local orbitConnection
local humanoidRootPart
local previewBlock
local orbitBlock
local previewConnection
--------------------------------------------------
-- TARGET PLAYER
--------------------------------------------------
local function getNearestPlayer()
local nearest
local dist = math.huge
for _, p in pairs(Players:GetPlayers()) do
if p ~= player and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
local mag = (humanoidRootPart.Position - p.Character.HumanoidRootPart.Position).Magnitude
if mag < dist then
dist = mag
nearest = p.Character.HumanoidRootPart
end
end
end
return nearest
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







