|
| 28 Apr 2012 06:57 PM |
So in my place you look out a window into outer space One in a while a space ship will pass by the window.. (obviously a "while true do") Now I know how to move the spaceship.. but how could I use the for loop to increase the MoveTo() coordinates by 1 increment on, the x axis
game.Workspace.Plane1:MoveTo(Vector3.new(x,y,z)) --This is what I know..
Here is my attempt:
Plane1 = [THE SPACESHIP]
while true do for i = 1, 100 do game.Workspace.Plane1:MoveTo(Plane1.Position * Vector3.new(1,0,0)) wait() end end
My attempt most likely is inacuurate.. any help? |
|
|
| Report Abuse |
|
aboy5643
|
  |
| Joined: 08 Oct 2010 |
| Total Posts: 5458 |
|
| |
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 28 Apr 2012 07:37 PM |
use `:TranslateBy` instead.
for i=1,100 do workspace.Plane1:TranslateBy(Vector3.new(1,0,0)); Wait(); end |
|
|
| Report Abuse |
|