How Would I Code The Archimedean Spiral

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.

image
I was able to get it to rotate around I realized i forgot to add the rotation degrees which is why it stayed at the same place now I need to figure out how to continue it off staying connected

Holy #### I just about almost figured it out.
image
image

I ####### DID ITTTTTTTTTTT, LETS FREAKING GOOO YESSSSSSSSS
image

1 Like

Great to see you solved your own problem. Persistence is a gift to be enjoyed.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.