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 » Game Creation and Development » Scripting Helpers
Home Search
 

Need help with one line

Previous Thread :: Next Thread 
IlIll is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
17 Jul 2012 10:37 PM
d.velocity = p.CFrame.lookVector * 50
Instead of using the lookVector; which is the direction I'm facing.. I want it to be the top of my head. I tried replacing lookVector with y but it wouldn't work.

but for reference... just a portion of the script
d = Instance.new("BodyVelocity")
d.Parent = p
d.maxForce = Vector3.new(math.huge, math.huge, math.huge)
d.velocity = p.CFrame.lookVector * 50
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
17 Jul 2012 10:39 PM
CFrame.p.lookVector * 50

Unless you have already defined p
Report Abuse
IlIll is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
17 Jul 2012 10:40 PM
p is defined. p is torso
Report Abuse
IlIll is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
17 Jul 2012 10:41 PM
bwah I'm getting that feeling that it doesn't have to do with that line
Report Abuse
DavidBowiesEyes is not online. DavidBowiesEyes
Joined: 15 Nov 2010
Total Posts: 13270
17 Jul 2012 10:46 PM
What are you trying to? Are you creating a brick above your head?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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