generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Club Houses » ROBLOX Talk
Home Search
 

Re: C-Frame "lookVector"

Previous Thread :: Next Thread 
Jcool2010 is not online. 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 is not online. Bumpity
Joined: 08 Feb 2012
Total Posts: 584
14 Feb 2012 11:09 AM
[ Content Deleted ]
Report Abuse
rockandroll6751 is not online. rockandroll6751
Joined: 28 Jul 2009
Total Posts: 11959
14 Feb 2012 11:10 AM
I wouldn't know, I've only just started c framing and scripting.
Report Abuse
rstvguy is not online. rstvguy
Joined: 30 May 2010
Total Posts: 14073
14 Feb 2012 11:24 AM
[ Content Deleted ]
Report Abuse
Juniperr is not online. 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
Rikerwatts is not online. Rikerwatts
Joined: 02 Aug 2008
Total Posts: 11296
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
clubber909 is not online. clubber909
Joined: 01 Feb 2007
Total Posts: 19331
14 Feb 2012 11:42 AM
Show the line of code that references the lookVector.
Report Abuse
Jcool2010 is not online. 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 is not online. 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 is not online. Jcool2010
Joined: 22 Oct 2010
Total Posts: 214
18 Feb 2012 12:15 AM
A Convayor
Report Abuse
CoolDude0017 is not online. CoolDude0017
Joined: 16 Apr 2011
Total Posts: 1125
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 is not online. 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 is not online. 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 is not online. 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 is not online. Jcool2010
Joined: 22 Oct 2010
Total Posts: 214
18 Feb 2012 03:19 PM
yus :3
Report Abuse
palk47 is not online. palk47
Joined: 07 May 2009
Total Posts: 508
18 Feb 2012 03:22 PM
Wrong topic...
Report Abuse
Jmanfh is not online. Jmanfh
Joined: 27 Jun 2009
Total Posts: 45871
18 Feb 2012 03:23 PM
[ Content Deleted ]
Report Abuse
Jcool2010 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » ROBLOX Talk
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image