Jcool2010
|
  |
| Joined: 22 Oct 2010 |
| Total Posts: 214 |
|
|
| 14 Feb 2012 11:05 AM |
Posted: 02-14-2012 09:04 AM When ever i do a script with lookVector it comes up as this
Workspace.Full Unit.Choose.Frame.B1.Script:14: attempt to perform arithmetic on field 'lookVector' (a nil value)
In the Output bar.
'lookVector' (a nil value) = 'lookVector' (a NON Existing value)
Help?
|
|
|
| Report Abuse |
|
|
Bumpity
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 584 |
|
| |
|
|
| 14 Feb 2012 11:10 AM |
| I wouldn't know, I've only just started c framing and scripting. |
|
|
| Report Abuse |
|
|
rstvguy
|
  |
| Joined: 30 May 2010 |
| Total Posts: 14073 |
|
| |
|
Juniperr
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 6094 |
|
|
| 14 Feb 2012 11:26 AM |
lookVector is the CFrame which the brick is facing. You must use; "brick.CFrame.lookVector"
You must use it with CFrame. I suppose that's where you're wrong. |
|
|
| Report Abuse |
|
|
|
| 14 Feb 2012 11:27 AM |
Look in my models, it's the second one. It has 3 types of c-framers. Alpha positioner CF2 (fast detail) CF1 (high detail)
and some other things Classic copy Classic delete Classic Move Warp |
|
|
| Report Abuse |
|
|
|
| 14 Feb 2012 11:42 AM |
| Show the line of code that references the lookVector. |
|
|
| Report Abuse |
|
|
Jcool2010
|
  |
| Joined: 22 Oct 2010 |
| Total Posts: 214 |
|
|
| 16 Feb 2012 03:55 PM |
(The Script is in the brick ad the brick is unanchored) script.Parent.Velocity = script.Parent.CFrame.lookVector* -20
|
|
|
| Report Abuse |
|
|
Juniperr
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 6094 |
|
|
| 17 Feb 2012 08:54 PM |
| >.< You can't copy a position into velocity. Please post what you are trying to achieve. |
|
|
| Report Abuse |
|
|
Jcool2010
|
  |
| Joined: 22 Oct 2010 |
| Total Posts: 214 |
|
| |
|
|
| 18 Feb 2012 12:16 AM |
I don't script. :/ I can do this though.
game.Workspace.rockandroll6751.Head:remove() or something similar.
PLOX? or UJELLY? or :O Fried Chiicki! (BTW I am a subject changer) |
|
|
| Report Abuse |
|
|
Jcool2010
|
  |
| Joined: 22 Oct 2010 |
| Total Posts: 214 |
|
|
| 18 Feb 2012 12:31 AM |
Also I Think I Need to add a while do true , An add and an end.
I Dont want to reveal too much of the script. |
|
|
| Report Abuse |
|
|
xGEaZYx
|
  |
| Joined: 29 Jun 2011 |
| Total Posts: 1195 |
|
|
| 18 Feb 2012 12:37 AM |
these words look like jibberish to me Nonscripters FTW
xG Eats Jellyfish |
|
|
| Report Abuse |
|
|
Juniperr
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 6094 |
|
|
| 18 Feb 2012 10:29 AM |
So you want a conveyor that moves in the direction of the lookVector?
|
|
|
| Report Abuse |
|
|
Jcool2010
|
  |
| Joined: 22 Oct 2010 |
| Total Posts: 214 |
|
| |
|
palk47
|
  |
| Joined: 07 May 2009 |
| Total Posts: 508 |
|
| |
|
Jmanfh
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 45871 |
|
| |
|
Jcool2010
|
  |
| Joined: 22 Oct 2010 |
| Total Posts: 214 |
|
|
| 19 Feb 2012 12:22 AM |
Nah I'm making a train , Check it out here. http://www.roblox.com/Show-Case-place?id=52233702
But Its the Roblox that went wrong , So i made it seem like the script kept braking.
|
|
|
| Report Abuse |
|
|
Juniperr
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 6094 |
|
|
| 19 Feb 2012 10:58 AM |
This would be useful;
Speed = 10
P1 = script.Parent
P1.Velocity = P1.CFrame.lookVector*Speed |
|
|
| Report Abuse |
|
|