Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UIS = :()
player = Players.LocalPlayer
orbitSpeed =
orbitRadius =
angle =
orbitMode =
orbiting =
blockVisible =
orbitConnection
humanoidRootPart
previewBlock
orbitBlock
previewConnection
()
nearest
dist = .huge
_, p (Players:())
p ~= player p.Character p.Character:()
mag = (humanoidRootPart.Position - p.Character.HumanoidRootPart.Position).Magnitude
mag < dist
dist = mag
nearest = p.Character.HumanoidRootPart
nearest
()
previewBlock previewBlock:()
previewBlock = .()
previewBlock.Size = .(,,)
previewBlock.Anchored =
previewBlock.CanCollide =
previewBlock.Transparency = blockVisible
previewBlock.Color = .(,,)
previewBlock.Parent =
previewConnection previewConnection:()
previewConnection = RunService.RenderStepped:(()
orbitMode == humanoidRootPart previewBlock
pos = humanoidRootPart.Position + humanoidRootPart.CFrame.LookVector *
previewBlock.Position = pos
)
()
orbitMode == previewBlock
orbitBlock orbitBlock:()
orbitBlock = previewBlock:()
orbitBlock.Transparency =
orbitBlock.Parent =
UIS.InputBegan:((input, gp)
gp
orbitMode == input.UserInputType == .UserInputType.MouseButton1
()
)
()
orbitConnection orbitConnection:()
orbitConnection = RunService.RenderStepped:((dt)
humanoidRootPart
target
orbitMode ==
target = ()
target = orbitBlock
target
angle = angle + orbitSpeed * dt
offset = .(
.(angle) * orbitRadius,
,
.(angle) * orbitRadius
)
pos = target.Position + offset
humanoidRootPart.CFrame = .(pos, target.Position)
)
()
orbiting = orbiting
orbiting
()
orbitConnection orbitConnection:()
(parent, yPos, labelName, valueVar, setValue, minValue)
frame = .(, parent)
frame.Size = .(,,,)
frame.Position = .(,,yPos,)
frame.BackgroundTransparency =
label = .(, frame)
label.Size = .(,,,)
label.BackgroundTransparency =
label.Text = labelName
label.TextColor3 = .(,,)
label.Font = .Font.GothamBold
label.TextScaled =
control = .(, frame)
control.Size = .(,,,)
control.Position = .(,,,)
control.BackgroundTransparency =
minus = .(, control)
minus.Size = .(,,,)
minus.Text =
minus.Font = .Font.GothamBold
minus.TextScaled =
minus.BackgroundColor3 = .(,,)
minus.TextColor3 = .(,,)
value = .(, control)
value.Size = .(,,,)
value.Position = .(,,,)
value.BackgroundTransparency =
value.Text = (())
value.TextColor3 = .(,,)
value.Font = .Font.GothamBold
value.TextScaled =
plus = .(, control)
plus.Size = .(,,,)
plus.Position = .(,,,)
plus.Text =
plus.Font = .Font.GothamBold
plus.TextScaled =
plus.BackgroundColor3 = .(,,)
plus.TextColor3 = .(,,)
minus.MouseButton1Click:(()
new = .(minValue, () - )
(new)
value.Text = (new)
)
plus.MouseButton1Click:(()
new = () +
(new)
value.Text = (new)
)
()
gui = .()
gui.Parent = player:()
gui.ResetOnSpawn =
frame = .()
frame.Parent = gui
frame.Size = .(,,,)
frame.Position = .(,-,,-)
frame.BackgroundColor3 = .(,,)
frame.Active =
frame.Draggable =
.(, frame)
corIndice =
RunService.RenderStepped:((dt)
corIndice = corIndice + dt *
frame.BackgroundColor3 = .(corIndice % , , )
)
title = .()
title.Parent = frame
title.Size = .(,,,)
title.Position = .(,,,)
title.Text =
title.BackgroundTransparency =
title.TextColor3 = .(,,)
title.Font = .Font.GothamBold
title.TextScaled =
creatorLabel = .()
creatorLabel.Parent = frame
creatorLabel.Size = .(,,,)
creatorLabel.Position = .(,,,)
creatorLabel.Text =
creatorLabel.BackgroundTransparency =
creatorLabel.TextColor3 = .(,,)
creatorLabel.Font = .Font.GothamBold
creatorLabel.TextScaled =
(frame, , , () orbitSpeed , (v) orbitSpeed = v , )
(frame, , , () orbitRadius , (v) orbitRadius = v , )
modeBtn = .(, frame)
modeBtn.Size = .(,,,)
modeBtn.Position = .(,,,)
modeBtn.Text =
modeBtn.Font = .Font.GothamBold
modeBtn.TextScaled =
modeBtn.BackgroundColor3 = .(,,)
modeBtn.TextColor3 = .(,,)
modeBtn.MouseButton1Click:(()
orbitMode ==
orbitMode =
modeBtn.Text =
()
orbitMode =
modeBtn.Text =
previewBlock
previewBlock.Position = .(, -, )
)
startBtn = .(, frame)
startBtn.Size = .(,,,)
startBtn.Position = .(,,,)
startBtn.Text =
startBtn.Font = .Font.GothamBold
startBtn.TextScaled =
startBtn.BackgroundColor3 = .(,,)
startBtn.TextColor3 = .(,,)
startBtn.MouseButton1Click:(toggleOrbit)
spawnBtn = .(, frame)
spawnBtn.Size = .(,,,)
spawnBtn.Position = .(,,,)
spawnBtn.Text =
spawnBtn.Font = .Font.GothamBold
spawnBtn.TextScaled =
spawnBtn.BackgroundColor3 = .(,,)
spawnBtn.TextColor3 = .(,,)
spawnBtn.MouseButton1Click:(spawnBlock)
deleteBtn = .(, frame)
deleteBtn.Size = .(,,,)
deleteBtn.Position = .(,,,)
deleteBtn.Text =
deleteBtn.Font = .Font.GothamBold
deleteBtn.TextScaled =
deleteBtn.BackgroundColor3 = .(,,)
deleteBtn.TextColor3 = .(,,)
deleteBtn.MouseButton1Click:(()
orbitBlock
orbitBlock:()
orbitBlock =
)
(char)
humanoidRootPart = char:()
player.Character
(player.Character)
player.CharacterAdded:(onCharacter)
()⚠️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😊

Universal