|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|