ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 06 Dec 2014 09:23 AM |
I have this script:
for i = 1,#ship do local inc = 0.7 local dir = CFrame.new(ship[i].Position, shipn.Front.Position).lookVector local mm = (dir * inc) coroutine.wrap(function() while foward == true do wait() ship[i].CFrame = ship[i].CFrame + mm end end)() end
When I move it, instead of going foward, it goes down? Help? |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
| |
|
|
| 06 Dec 2014 10:02 AM |
| What's the rotation of shipn? |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 06 Dec 2014 10:03 AM |
| shipn is a model, Front is a part inside of shipn |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 10:04 AM |
| Yeah, I meant the part Front because if it's Rotation isn't "0,0,0" right off the bat, you are probably going to get a weird result like you're experiencing |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 06 Dec 2014 10:05 AM |
| The rotation of Front is 0,90,0 |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 10:06 AM |
| That's your problem, make it 0,0,0 |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 06 Dec 2014 10:08 AM |
| I changed it to 0,0,0 but its still happening |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 10:09 AM |
| Hmm... Could you post a place of this and I'll test it? |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
| |
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
| |
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
| |
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 06 Dec 2014 12:38 PM |
You just completely ignored his post...
Mr. Mustachio | ( ͡°╭͜ʖ╮͡° ) |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
| |
|
|
| 06 Dec 2014 07:39 PM |
| He didn't ignore it, he sent a party invite. |
|
|
| Report Abuse |
|
|