|
| 19 Dec 2013 06:36 PM |
pa = script.Parent.CFrame pb = script.Parent.CFrame.lookVector*20
local bots = game.Workspace.FakeTeam:GetChildren() for i = 1, #bots do bots[i].CFrame = (pa + pb) * CFrame.Angles(0, 0, math.rad(360/i)) * CFrame.new(0, 10, 0) * CFrame.Angles(0, math.pi, 0) end
I got the parts to face in the direction of the main part without facing directly at it.
I still can't get them to form a perfect circle OR to stay upright. The parts' BottomSurfaces all point at the center of the "circle". I need a perfect circle, and I want them to stand upright. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2013 06:40 PM |
UPDATE:
pa = script.Parent.CFrame pb = script.Parent.CFrame.lookVector*20
local bots = game.Workspace.FakeTeam:GetChildren() for i = 1, #bots do bots[i].CFrame = (pa + pb) * CFrame.Angles(0, 0, math.rad(360/#bots)*i) * CFrame.new(0, 10, 0) * CFrame.Angles(0, math.pi, 0) end
Got my perfect circle finally, but I still can't get them to stand upright. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|