badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 29 Dec 2015 11:37 AM |
trying to get blocks to move
i've tried using body gyro but all that does is make them spin and zoom in random directions
bodyposition works but they slow down and stop before they even touch what they're going for
You're a blunt tool, old man. |
|
|
| Report Abuse |
|
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
|
| 29 Dec 2015 11:40 AM |
Just use BodyVelocity and do this bv.Velocity = (target.Position - start.Position).unit * Speed
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 29 Dec 2015 01:43 PM |
works but they randomly just start running into walls
why?
You're a blunt tool, old man. |
|
|
| Report Abuse |
|
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
|
| 30 Dec 2015 06:35 AM |
Um... u mean that it like... doesn't stop sort of, when reaching the target? If so, make the Damping bigger. (D property)
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 30 Dec 2015 07:14 AM |
No, as in it doesn't move the way it's facing
You're a blunt tool, old man. |
|
|
| Report Abuse |
|
|
KingJacko
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
|
| 30 Dec 2015 07:20 AM |
| you need to use velocity in a loop since its a force that goes away |
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 30 Dec 2015 07:37 AM |
like this?
c3 = coroutine.create(function() while wait(.05) do if going_to_apple then script.Parent.CFrame = CFrame.new(script.Parent.Position, apple.Position) bv.Velocity = (apple.Position - script.Parent.Position).unit * MoveSpeed.Value end end end)
You're a blunt tool, old man. |
|
|
| Report Abuse |
|
|