MrMcAero
|
  |
| Joined: 21 Apr 2012 |
| Total Posts: 671 |
|
|
| 01 May 2012 06:32 PM |
I'm trying to take a part from lighting, clone it, and make the position and the angle of the par to that of another part that move's.
A is the part from Lighting B is the part it's suppose to copy position's/CFrame
local a = game.Lighting.Part:clone() local b = game.Workspace.Part a.Parent = game.Workspace a.Position = Vector3.new(b.Position.X,b.Position.Y - 3,b.Position.Z) * CFrame.new(a) -- I'd like the part to "spawn" 3 stud's below the new part, and does the CFrame make the part look the same angle?
- Cheers! |
|
|
| Report Abuse |
|
|
MrMcAero
|
  |
| Joined: 21 Apr 2012 |
| Total Posts: 671 |
|
| |
|
tofwap
|
  |
| Joined: 06 Dec 2007 |
| Total Posts: 6596 |
|
|
| 01 May 2012 06:43 PM |
um. I assume you meant to use CFrame for this line
a.Position = Vector3.new(b.Position.X,b.Position.Y - 3,b.Position.Z) * CFrame.new(a)
a.CFrame=b.CFrame.P + Vector3.new(0,-3,0)
-- I'd like the part to "spawn" 3 stud's below the new part, and does the CFrame make the part look the same angle? |
|
|
| Report Abuse |
|
|