|
| 16 Aug 2013 10:33 PM |
Ok, so everyone knows about, Rotation, TimeOfDay, Position. Right? Well say theres this
Position = Vector3.new(0, 0, 0) And then, I want to move it one by one. like so Position = Vector3.new(0, 1, 0) wait() Position = Vector3.new(0, 2, 0)
And on, and on, and on.
How can I make that shorter so I can do like
while true do p= Position = Vector3.new(0, +1, 0) wait() p wait() p wait()
Is it possible? |
|
|
| Report Abuse |
|
hunte922
|
  |
| Joined: 28 May 2008 |
| Total Posts: 6969 |
|
|
| 16 Aug 2013 10:37 PM |
num = 0 while true do num = num + 1 p = Vector3.new(0,num,0) wait(0.1) end |
|
|
| Report Abuse |
|
|
| 16 Aug 2013 10:40 PM |
It's very possible, and one of the fundamental things to learn if you want to start making real code:
timesToMove = 3 -- Change, of course part = Workspace.Part for i = 1,timesToMove do -- Start a for loop that will iterate (happen) `timesToMove` times part.Position = part.Position + Vector3.new(0,1,0) wait() end
~ Oh, I'm sorry, did I break your concentration? ~ |
|
|
| Report Abuse |
|