Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Jul 2015 08:52 PM |
| How can I bypass the initial value having to be a number. |
|
|
| Report Abuse |
|
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
| |
|
Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Jul 2015 08:54 PM |
for i = pos, p do part.CFrame = CFrame.new(i, Vector3.new(p.x,pos.y,p.z)) end says initial value must be a number? I dont know how to explain more. |
|
|
| Report Abuse |
|
|
igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 08 Jul 2015 08:59 PM |
For loops work as
for 1,10 do -- code here wait(1) end
It`ll execute the code 10 times in 10seconds.
Now you might me asking this, to make actual CFrame moviment
for i=1, 100 do door1.CFrame = door1.CFrame * CFrame.new(-0.1,0,0) wait() end
Said the wise. |
|
|
| Report Abuse |
|
|
Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Jul 2015 09:01 PM |
| But the initial value is variable. I can't change that. it's apart of my game. |
|
|
| Report Abuse |
|
|