Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a smooth circle using CFrame?

Asked by 6 years ago

This script will work if Loid is sized 1x1x1 but the join brick just needs to exist. This script will create a general hollow circle but the outer rim of this circle is not smooth.

local loid = workspace.Loid
local join = workspace.Join

for i = 0, 359 do
    local newLoid = loid:Clone()
    newLoid.Parent = workspace
    join.CFrame = CFrame.new(loid.Position) * CFrame.Angles(0,math.rad(i),0) * CFrame.new(0.5,0,0.5)
    newLoid.CFrame = join.CFrame * CFrame.new(0.5,0,-0.5)
    loid = newLoid
    wait()
end

join:Destroy()

Would there be any solution to make the transition between every new brick/loid placed smooth with no gap in between them?

0
Assuming solid modeling is out of the question? mattscy 3725 — 6y

Answer this question