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
 

Re: CFrame Help

Previous Thread :: Next Thread 
aka303 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
04 Jan 2014 05:05 PM
I need help writing a script that makes a block go forward, in the direction it is facing. Not [blah blah blah...+Vector3.new(x, x, x)] because that only makes it in a specific direction, but a script that makes it go in the direction the block is facing.
Please tell me how to to that.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jan 2014 05:08 PM
forward = 10
block.Position = block.CFrame * CFrame.new(0, 0, -forward)
Report Abuse
konichiwah91 is not online. konichiwah91
Joined: 18 Jan 2011
Total Posts: 3677
04 Jan 2014 05:08 PM
I honestly don't think this is possible. I can't think of a single method that can relate to this. .-.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jan 2014 05:13 PM
It is so easily possible, there are like, 20 ways to do it as well
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