Universal Script 📌
415 Views
281 Executions

Orbitation Chroma

Universal Script 📌
CryptoCodeSupreme
CryptoCodeSupreme10K executions
8 months 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

⚠️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😊

View Raw
-- 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

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

Tags

More universal scripts

See all
Script hub
160.1k
1.5M
Bumped 4 hours ago
Key System

Script hub

#15 this week

Verified script badgeAirflow HUB

Universal Script 📌
2.4k
996
Bumped 4 hours ago
Script hub
1.6M
1.9M
Bumped 5 hours ago
Key System

Script hub

#10 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
40.6k
817.4k
Bumped 6 hours ago
Universal Script 📌
133.9k
24.2k
Bumped 7 hours ago
Key System