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: Circles with humanoid:MoveTo()

Previous Thread :: Next Thread 
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
14 Jan 2013 05:46 PM
Nothing to complicated here, just trying to form a circle out of bots here... however i seem to get a straight line with bunches of 2

local circle = targ.CFrame
* CFrame.Angles(math.rad(360*subj.d.Value/num), 0, 0)
* CFrame.new(0, 0, 50)
subj.Humanoid:MoveTo(circle.p,Workspace.Terrain)

subj.d.Value is the bots number (i.e. 2 as in 2 of 5 bots)
num is the total number of bots
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
14 Jan 2013 05:50 PM
Umm, I think I have done something like this before but with parts floating around my torso. Lemme go find the script.
Report Abuse
MantarayJack is not online. MantarayJack
Joined: 22 Dec 2012
Total Posts: 183
14 Jan 2013 05:55 PM
CFrame.Angles(0, math.rad(360*subj.d.Value/num), 0)
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
14 Jan 2013 05:56 PM
You didn't place the Angles just right. Where you put it, it would have to be some what in the air to be noticeable.
Now if you wanted the circle to be flat, you'd have to do:

CFrame.Angles(0, math.rad(360*subj.d.Value/num), 0)
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