of     1   

xSTAFFGUYx
#36885209Friday, November 12, 2010 4:55 PM GMT

Isn't it something like for i = 1, 10 do p = Instance.new("Part") p.Parent = Workspace p.CFrame = CFrame.new(math.pi * i, 4, math.pi * i) p.Anchored = true end Please correct that horrible failure
flump
#36885557Friday, November 12, 2010 5:07 PM GMT

local range = 10 for i = 1, range do p = Instance.new("Part") p.Parent = Workspace p.CFrame = CFrame.new((math.pi/180)*(range-i), 4, (math.pi/180) * (range-i)) p.Anchored = true end i think thats how its done give it a try i havent tested it
AgentFirefox
Top 100 Poster
#36885696Friday, November 12, 2010 5:12 PM GMT

You can either use the equation for a circle, or sine and cosine. Since ROBLOX is already in radians, we can easily use the sine and cosine functions. Sine and Cosine are defined as Y/r and X/r respectively. With this information, we can find Y and X easily with basic algebra to this: X = r*cos(T) Y = r*sin(T) When T is in radians. With that said, we can make a loop to create a circle. local Radius = 5 local Y_Coord = 4 for i = 1, 360, 2 do local p = Instance.new("Part",workspace) p.Anchored = true p.Size = Vector3.new(1,1,1) p.CFrame = CFrame.new(Vector3.new(Radius*math.cos(math.rad(i)), Y_Coord, Radius*math.sin(math.rad(i))), Vector3.new(0,Y_Coord,0)) wait() end
xSTAFFGUYx
#36885763Friday, November 12, 2010 5:15 PM GMT

Thanks but is there any less comlicated way (like my attempt)/more basic way to do it?
Fungalmungal
#36887879Friday, November 12, 2010 6:31 PM GMT

for i = 1, 10 do p = Instance.new("Part") p.Parent = Workspace p.CFrame = CFrame.new(0, math.pi/5*i,0) * CFrame.new(0,0,10) p.Anchored = true end
07lchris
#36888842Friday, November 12, 2010 7:08 PM GMT

@ AgentFirefox That makes a really pretty circle!
AgentFirefox
Top 100 Poster
#36888943Friday, November 12, 2010 7:11 PM GMT

And it makes sense, too. :) I used to use the equation of a circle, but it didn't get me very far. There were gaps. Yay for sine/cosine!

    of     1