So basically I am trying to code things to make cool looking shapes for practice and fun and trying to implement formulas if possible and so I am trying to code the Spiral Circle where its like a lot of parts that spirals around into a circle like in this image
local Base = Instance.new("Part", game.Workspace)
Base.Anchored = true
Base.CFrame*=CFrame.new(0,5,0)
local Irritations = 10
local Step = .5
local function IrritateStep()
for i = 1, 45 do
local NewPart = Instance.new("Part", game.Workspace)
NewPart.Size = Vector3.new(1,1,1)
NewPart.Anchored = true
local FinalCFrame = Base.CFrame * CFrame.fromEulerAngles(0,math.rad(4),0) * CFrame.new(Step,0,0)
NewPart.CFrame = FinalCFrame
end
end
local function InitializeSpiral()
print("Initializing Spiral!")
for i = 1, Irritations do
IrritateStep()
Step += .5
end
print("Spiral Initialized!")
end
InitializeSpiral()
So far I watched a few videos on the Archimedean Spiral and how its coded in different languages like Python and now I tried looking at this video on Scratch where this guy made it with block code and tried replicating it to roblox studio
One of the issues I face so far is all the parts wont rotate around one base part they stay stuck in one places.