generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Can't make a perfect circle, need help.

Previous Thread :: Next Thread 
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
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
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
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
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
19 Dec 2013 06:56 PM
bump
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
19 Dec 2013 07:15 PM
bump
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
19 Dec 2013 07:49 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image