doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 02 Jul 2013 11:52 AM |
torso.CFrame = ref.CFrame + Vector3.new(x.Value, y.Value,z.Value)
I don't understand the issue. |
|
|
| Report Abuse |
|
|
Riderj
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 1534 |
|
|
| 02 Jul 2013 11:54 AM |
| Can' mix CFrame's and Vector3's they have 2 very different argument possibilities. |
|
|
| Report Abuse |
|
|
Thaeh
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 7685 |
|
|
| 02 Jul 2013 11:55 AM |
x.Value won't work you need to do it like this: Vector3.x.Value |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 02 Jul 2013 12:18 PM |
| That's not my whole script. I have the variables defined elsewhere. |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 02 Jul 2013 12:19 PM |
| @first reply: What can I do to fix it? |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 02 Jul 2013 12:44 PM |
| That doesn't look like the area with that issue. Adding a Vector3 to a CFrame will simply slide the positional row of the matrix. It should be fine. I'm pretty sure that error is elsewhere. |
|
|
| Report Abuse |
|
|
ExosXguy
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 2239 |
|
|
| 02 Jul 2013 12:45 PM |
Just to experiment, try CFrame.new instead of Vector3.new
See if there's any changes. |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 02 Jul 2013 04:01 PM |
| bad argument #2 to '?' (Vector3 expected, got userdata) |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
| |
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
| |
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
| |
|
| |
|
|
| 02 Jul 2013 11:31 PM |
| Could you post the declarations of x, y , and z? |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 02 Jul 2013 11:44 PM |
CFrame can not assign to.
torso.CFrame = ref.CFrame + Vector3.new(0, 5, 0)
I changed the numbers to be sure. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2013 11:45 PM |
| Odd. What are torso and ref? |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 03 Jul 2013 08:38 AM |
| just bricks. They should be fine. |
|
|
| Report Abuse |
|
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 03 Jul 2013 08:39 AM |
Y not do:
* CFrame.new(1,1,1) instead of + Vector3? |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 03 Jul 2013 07:19 PM |
torso.CFrame = ref.CFrame * CFrame.new(0, 5, 0)
same error |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2013 07:23 PM |
| The problem seems to be "torso.CFrame", are you sure you referenced torso correctly? |
|
|
| Report Abuse |
|
|