06-14-2011, 02:35 PM
(06-14-2011, 02:01 PM)Jacob_ Wrote: [lua]
local part = script.Parent
local orig = part.Position
script.Parent = game.World
local m = create("Model")
m.Parent = game.World
local rad = 30
local reps = 30
for i = 0, math.pi*2, math.pi*2/reps do
local a = part:clone()
a.Position = orig:add(Vec2D(rad*math.sin(i), rad*math.cos(i)))
v = a.Positionub(orig).normalized
a.Rotation = math.deg(math.atan2(v.y, v.x))
a.Fixed = true
a.Parent = m
end
[/lua]
Put the script in a part, and it will make a hollow circle around it out of that part. Works with boxes and circles.
Thanks
![[Image: cxAECR.png]](http://troll.ws/i/cxAECR.png)
![[Image: r8umfc.gif]](http://i56.tinypic.com/r8umfc.gif)