|
| 04 Apr 2013 09:56 PM |
everytime I try to do this:
part.CFrame = secondPart.CFrame + CFrame.new(3, 0, 0)
it says Vector3 expected, But I'm trying to change the cframe position... |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 10:01 PM |
part.CFrame = secondPart.CFrame + Vector.new(3, 0, 0)
A CFrame is a Vector3 but with 12 numbers at the end of it that tell rotation. Think of a Vector3 as a position, and the CFrame as the position plus rotation. You're adding position to this, so you'd use Vector3. |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 10:02 PM |
| CFrame is a Vector3 with 9 numbers at the end* 12 with rotation + position, my bad. |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 10:05 PM |
but, I want this certain model to appear beside you each time. Everytime I rotate, the model appears in different places.
Here's what I used:
clon.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(3, 0, 0)
it appears at different places... |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 10:08 PM |
| oh, nevermind. *CFrame seamed to do the trick. |
|
|
| Report Abuse |
|
|