Can we have a group of users that know both roblox and buildism lua...
#7
[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.PositionConfusedub(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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)