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
 

CFraming blocks around circles?

Previous Thread :: Next Thread 
TurboMonkey25 is not online. TurboMonkey25
Joined: 15 Jan 2011
Total Posts: 43959
12 Apr 2013 02:25 PM
I'm trying to make a water fountain, but I have no idea how to CFrame extra blocks around it without massive CFrame work...

Is there an easier/less time consuming way?

~monkey of rt~
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
12 Apr 2013 03:02 PM
YES! Use this my good friend! CFRAME IS SO FUN!

local number = 16
local distance = 10
local cP = path.to.brick.in.center
local pos = cP.Position local cF = cP.CFrame

for i = 1,number do
local lV = (cF*CFrame.Angles(0,(math.pi/number)*distance),0)).lookVector
local part = clonePart:Clone()
part.CFrame = CFrame.new((pos+lV),pos)
wait(.01)
end

Tell me if that works! If it doesn't give me teh output, making that script was fun!
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
13 Apr 2013 09:35 PM
Sorry I found some errors. It doesn't look like you need this any more, so I will post a working version for anybody who wants to know how to do this!

local number = 16
local distance = 10
local cP = workspace.center --path to brick in center
local pos = cP.Position local cF = cP.CFrame

for i = 1,number*2 do
local lV = (cF*CFrame.Angles(0,((math.pi/number*i)),0)).lookVector*distance
local part = workspace.copy:Clone() part.Parent = workspace part.Name = "clonemeh" --clone brick properties
part.CFrame = CFrame.new((pos+lV),pos)
wait(.01) --optional
end
Report Abuse
Disclaimed is not online. Disclaimed
Joined: 22 Feb 2013
Total Posts: 70
13 Apr 2013 09:38 PM
Use cframe tool from free models go into test mode uplod to ROBLOX leave game and leave in studio mode and then edit place. done.
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
13 Apr 2013 09:41 PM
What?
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