|
| 23 Mar 2016 10:24 PM |
http://prntscr.com/aj7zq1
function Animations:SwitchTopic(UI,Chosen,Input) local UGroup = UI:GetChildren() CustomizationTopic = Chosen print(UGroup[1].Name) if Input == "New" then for index = 1, #UGroup do if UGroup[index].Name ~= Chosen then local UGroupY2 = UGroup[index].Position.Scale.Y UGroup[index]:TweenPosition(UDim2.new(-0.1, 0, UGroupY2, -15), "Out", "Quad", 1, false) end end wait(1.2) UI[Chosen]:TweenPosition(UDim2.new(0.02, 0, 0.28, -15), "Out", "Quad", 1, false) end end
This is a method inside of a module, and I can't figure out why the error is happening. The game throws me to the script with that line for some reason. |
|
|
| Report Abuse |
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 23 Mar 2016 10:48 PM |
i dont see anything wrong with that piece of code.
did a quick for loop in studio with your structure. nothing wrong.
perhaps try:
for i,v in next, UGroup do
end
only suggestions i can can |
|
|
| Report Abuse |
|