How can I spin a Gui in circles?
Your question isn’t super direct.
If you place elements in frames, you can set its Rotation
property to rotate the frame and everything in it to a specified angle.
rotate the gui or move the gui in circles?
local RunService = game:GetService("RunService")
local Gui
RunService.RenderStepped:Connect(function()
Gui.Rotation += 1
end)
local CenterX = 100
local CenterY = 100
local Radius = 50
local Angle = 0
local RunService = game:GetService("RunService")
local Gui
RunService.RenderStepped:Connect(function()
Gui.Position = UDim2.new(0, CenterX + Radius * math.cos(Angle), 0, CenterY + Radius * math.sin(Angle))
Angle += math.pi / 30
end)
I don’t exactly know what you mean by spinning a GUI In circles, but from my understanding, this could be what you’re looking for: