local center = script.Parent.Parent:WaitForChild("Cookieholder").CenterPart
local function updateOrbit(ply)
local tbl = dsm.getUpgrades(ply)
local cursor = game.ReplicatedStorage.Upgrades.Cursor
local numCursor = tbl.Cursor.Count
local angleOffset = math.pi * 2 / numCursor
local timee = tick() * 1
local angle = timee % (math.pi * 2)
for i = 1, numCursor do
local pos = center.Position + Vector3.new(math.cos(angle + angleOffset * (i - 1)), 0, math.sin(angle + angleOffset * (i - 1))) * 4
local rotation = CFrame.new(pos, center.Position)
cursor = script.Parent.Parent.Upgrades.Cursor:WaitForChild("Cursor"..i)
cursor.Position = pos
cursor.CFrame = rotation * CFrame.Angles(0, math.pi / 2, 0)
end
end