Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 15 Apr 2015 04:03 PM |
tabley = {game.Workspace.part1,game.Workspace.part2,game.Workspace.part3}
for i, v in pairs(game.Workspace.m1:GetChlidren()) do for ii, vv in pairs(tabley) do vv.Position = v.Position wait(1) end end
How would I make this run (almost) simultaneously?
This code is written just now and i'm doing this for educational purposes. |
|
|
| Report Abuse |
|
|
|
| 15 Apr 2015 04:05 PM |
Hard to see what ur trying to do but my guess is for i, v in pairs(game.Workspace.m1:GetChlidren()) do for ii, vv in pairs(tabley) do vv.Position = v.Positionx end wait(1) end |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 15 Apr 2015 04:06 PM |
I would consider myself to group the parts, get the model CFrame and then move it to a specific position but that's not what I really want.
|
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 15 Apr 2015 04:09 PM |
ew. don't double up the variables..just make new ones..The wait isnt necessary...
t = {game.Workspace.Part1,game.Workspace.Part2,game.Workspace.Part3}
for i, v in pairs(game.Workspace.M1:GetChildren()) do for i, x in pairs(t) do x.Position = v.Position end end |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 15 Apr 2015 04:16 PM |
@PlaceRebuilder
It was something that I wanted to expect. Thanks for your help.
@TimeTicks
I needed the wait for something important. Thanks doe. :P |
|
|
| Report Abuse |
|
|