Disti15
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 2652 |
|
|
| 15 Nov 2011 08:12 AM |
Localscript in a tool's handle
weld.C1 = CFrame.new(-0.5, 0.3, 0) * CFrame.lookVector(script.Parent)
I got the lookVector part wrong I think.. how do I do it? |
|
|
| Report Abuse |
|
|
Disti15
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 2652 |
|
| |
|
|
| 15 Nov 2011 09:04 AM |
| weld.C1 = CFrame.new(-0.5, 0.3, 0) * script.Parent.CFrame.lookVector |
|
|
| Report Abuse |
|
|
Disti15
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 2652 |
|
|
| 15 Nov 2011 10:40 AM |
sp.Weld4.C1 = CFrame.new(0, -0.6, 1.375) * sp.Parent.Frente.CFrame.lookVector
I want to make the Weld4's part1 face the part named "frente"
Output: Players.Player.Backpack.Bow.Handle.LocalScript:41: bad argument #3 to '?' (CFrame expected, got userdata) |
|
|
| Report Abuse |
|
|
Disti15
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 2652 |
|
|
| 15 Nov 2011 10:57 AM |
| I need help, sorry if I'm annoying. |
|
|
| Report Abuse |
|
|
Disti15
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 2652 |
|
| |
|
|
| 16 Nov 2011 08:02 AM |
sp.Weld4.C1 = CFrame.new(0, -0.6, 1.375) + sp.Parent.Frente.CFrame.lookVector
?
~ ROBERT00001 ~ ~(ಠωಠ)~ |
|
|
| Report Abuse |
|
|
Disti15
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 2652 |
|
|
| 16 Nov 2011 09:18 AM |
| The script continues, but it doesn't weld it... |
|
|
| Report Abuse |
|
|
Juniperr
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 6094 |
|
|
| 16 Nov 2011 09:40 AM |
| First of all, you cannot CFrame a weld. |
|
|
| Report Abuse |
|
|
Disti15
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 2652 |
|
|
| 16 Nov 2011 09:45 AM |
Yes you can. Only the lookvector part fails.
I want it to be at that distance and face that part named 'frente' |
|
|
| Report Abuse |
|
|
Juniperr
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 6094 |
|
|
| 16 Nov 2011 09:56 AM |
Sorry, I didn't read you post(s). This is how I would do it:
sp.Weld4.C1.CFrame = CFrame.new((sp.Weld4.C1.Position+sp.Parent.Frente.Position)/2,sp.Parent.Frente.Position)*CFrame.Angles(math.pi/2, math.pi, math.pi/2) |
|
|
| Report Abuse |
|
|
Disti15
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 2652 |
|
|
| 16 Nov 2011 10:10 AM |
That didn't work I will do it my way then. Sorry for disturbing. |
|
|
| Report Abuse |
|
|