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 » Scripters
Home Search
 

Re: radius calculation

Previous Thread :: Next Thread 
thelolguy301 is online. thelolguy301
Joined: 27 Sep 2011
Total Posts: 2997
10 Jul 2015 08:49 AM
I need to spawn 10 parts that form a radius of 90 degrees, but this radius is under an angle of 45 degrees. (like a shock wave would move outwards.)
Tried it with a few different for-statements, checked the wiki's "Circle" page. Can't find anything, and I don't quite understand how it works yet.


They have a cave troll
Report Abuse
trendal3 is not online. trendal3
Joined: 06 Feb 2011
Total Posts: 115
10 Jul 2015 08:55 AM
i know ur trying to make urself beautiful but u just can't
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
10 Jul 2015 09:04 AM
"radius of 90 degrees"

Radius is the distance from the center to the edge. 90 degrees isn't a valid radius.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Jul 2015 09:07 AM
for angle = 0, 9 do
local p = Instance.new('Part', Workspace)
p.Size = Vector3.new(1, 1, 1)
p.Anchored = true
p.CFrame = CFrame.new(0, 120, 0) --Start at the center of the circle
* CFrame.Angles(math.rad(angle* 10), 0, 0) --Rotate the brick
* CFrame.new(0, 0, 100) --Move it out by 100 units
wait()
end

is that what you wanted? I just edited it from the wiki's circle script. Using 9 instead of 10 parts because it made more sense.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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