Here is my orbit script. I need to modify it so that the part that orbits has a specific face constantly face a specified brick while orbiting.
Parent = script.Parent
Rotate = script.Parent.Parent.LeaderboardRotate
while wait() do
local t = tick() * (math.pi * 2) * .1 -- 1.5 revolutions per second
local orbit = Vector3.new( math.cos(t), 0, math.sin(t) )
Parent.CFrame = CFrame.new( Rotate.Position + orbit * 7 )
end
"Parent" is the brick that is orbiting. "Rotate" is the brick it is orbiting.

2 comments
I'd just like to point out that Referring to script.Parent as "Parent", can cause issues
Wait about a day while I get my calculus book out. This involves rotation matrices.