Run it
Copy the script and paste it into your executor.
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hat = game.Workspace:WaitForChild("Hat") -- Replace with the name of your hat
local head = character:WaitForChild("Head")
-- Parameters
local radius =
speed =
offset = .(, , )
angle =
orbiting =
mode =
(newMode)
mode = newMode
( .. mode)
mode ==
x = .(angle) * radius
z = .(angle) * radius
hat.CFrame = head.CFrame * .(x, offset.Y, z)
angle = angle + speed * .()
mode ==
time = ()
y = .(time * speed) *
hat.CFrame = head.CFrame * .(, offset.Y + y, )
mode ==
time = ()
rotation = .(time * )
hat.CFrame = head.CFrame * .(, rotation, ) * .(, offset.Y, )
mode ==
hat.CFrame = head.CFrame * .(, offset.Y, )
()
()
userInput = player.PlayerGui:().Text
userInput:() ==
()
userInput:() ==
()
userInput:() ==
()
userInput:() ==
()
Hat orbit

Universal