Mehssi
|
  |
| Joined: 15 Mar 2015 |
| Total Posts: 599 |
|
|
| 29 Nov 2015 09:29 PM |
blue = workspace.Values.bluePositions pos = script.Parent positions = {{blue.First,pos.First},{blue.Second, pos.Second},{blue.Third,pos.Third},{blue.Left,pos.Left}, {blue.Right,pos.Right}} for i,v in pairs (positions) do if v.Value ~= "None" then local play2 = game.Workspace:WaitForChild(v[1].Value) play2:MoveTo(v[2].Position) end end
this will only work for the first bracket (blue.First,pos.First) can someone tell me why? |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2015 09:31 PM |
v.Value is nil, I have no idea why you even put that there. You're moving it each iteration. You need to clone it if you want it in multiple areas, or yield if you want it to pause before moving. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2015 09:32 PM |
Never mind my second sentence, I was sooooo wrong.
I think that it can't find anything, and is waiting infinitely. |
|
|
| Report Abuse |
|
|
Mehssi
|
  |
| Joined: 15 Mar 2015 |
| Total Posts: 599 |
|
|
| 29 Nov 2015 09:38 PM |
| thanks but it finds the first one perfectly, for some reason it ignores the rest of the values :/ |
|
|
| Report Abuse |
|
|
Mehssi
|
  |
| Joined: 15 Mar 2015 |
| Total Posts: 599 |
|
|
| 29 Nov 2015 10:58 PM |
| plz help this is making me rage |
|
|
| Report Abuse |
|
|
Mehssi
|
  |
| Joined: 15 Mar 2015 |
| Total Posts: 599 |
|
|
| 29 Nov 2015 11:07 PM |
(ノಥ益ಥ)ノ ┻━┻ (╯°□°)╯︵ ┻━┻ ლ(ಠ益ಠლ) (ó ì_í)=ó ò=(ì_í ò)
|
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 30 Nov 2015 02:44 AM |
v.Value -> Table.Value
I wonder why you're using the if statement. |
|
|
| Report Abuse |
|
|