vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 07 Sep 2015 10:43 AM |
how would I make something go in the direction that it is facing
for example if a block was rotated by 50 degrees on the x axis how would I get it to move towards where it is facing, using body movers?
please help |
|
|
| Report Abuse |
|
|
East98
|
  |
| Joined: 17 Jun 2012 |
| Total Posts: 418 |
|
| |
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
| |
|
|
| 07 Sep 2015 11:19 AM |
local SPEED = 50 -- Determine a speed. local Dir = Part.CFrame.lookVector -- Get direction part is facing local Vel = Dir * SPEED -- multiply by speed
Part.BodyVelocity.Velocity = Vel -- stuff into a BodyVelocity Part.Velocity = Vel -- also into Part's Velocity
|
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 07 Sep 2015 12:05 PM |
yeah the body thrust didn't work
hopefully this one does |
|
|
| Report Abuse |
|
|