|
| 08 Oct 2015 08:36 AM |
I made a platform that goes back and forth, to loacation1, and location 2. But when I added bricks to it, they didn't turn when it went to a different. They just kept moving. For example, like a plane moving but it's not changing the point of the nose of it. can someone help me with this so taht it turns when it moves. Here's the script
script.Parent.Touched:connect(onTouched) seconds = 5 while true do script.Parent.BodyPosition.position = script.Parent.Parent.Location1.Position wait(seconds) script.Parent.BodyPosition.position = script.Parent.Parent.Location2.Position wait(seconds) end
Ty, message me if you can.
|
|
|
| Report Abuse |
|
|
LordxLoss
|
  |
| Joined: 02 Jun 2012 |
| Total Posts: 1999 |
|
|
| 08 Oct 2015 08:48 AM |
| replace script.Parent.BodyPosition.position with script.Parent.Position |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2015 08:50 AM |
@Lord
No, do you even know what BodyPosition is for? It's to automatically lerp the positions.
@OP
Increase the force, that is likely causing the issue. (math.huge or part mass) |
|
|
| Report Abuse |
|
|
LordxLoss
|
  |
| Joined: 02 Jun 2012 |
| Total Posts: 1999 |
|
|
| 08 Oct 2015 09:02 AM |
Hm, never used BodyForce before, I forgot that existed. What is lerping? |
|
|
| Report Abuse |
|
|