Can we have a group of users that know both roblox and buildism lua...
#4
(06-14-2011, 03:54 AM)McNoobster Wrote: [[lua]

--[[----Circle script, by xLEGOx---------
INSTRUCTIONS:
set "rad" to the distance between the center of the cicle and the outer edge
set "reps" to the ammount of bricks in the circle

press the "play" button

and your circle will be created, yays =P
]]

local bin = script.Parent
local orig = bin.Position
script.Parent = game.Workspace

local m = Instance.new("Model")
m.Parent = game.Workspace

----Set these----
local rad = 30
local reps = 30
--------------------

for i = 0, math.pi*2, math.pi*2/reps do
local a = bin:clone()
a.Position = orig+Vector3.new(rad*math.sin(i), 0, rad*math.cos(i))
a.CFrame = CFrame.new(a.Position, orig)
a.Anchored = true
a.Parent = m
end

print("done")

[/lua]

Um...

._.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)