of     1   

joekingly
#220082586Friday, June 30, 2017 3:38 AM GMT

I am trying to create a tweening model loader, meaning, a script that tween positions and sizes all the parts and unions into the original position for a cool loading animation sequence. But I am stumped on how to add parts to a table so they cannot be :cloned() and tweened more than once. Soo far, just starting but I can't get much further without this main function that I need your help with. local tweenservice = game:GetService("TweenService") local parts = script.Parent.Parent:GetChildren('UnionOperation', 'Part') local selected = parts[math.random(1,#parts)] selected.Name = math.random()..selected.Name -- I don't know how to add names to a table... zzz I know HOW to tween one thing, but doing multiple ones simultaneously without overlapping is something I am unfamiliar with. Help?
joekingly
#220083005Friday, June 30, 2017 3:45 AM GMT

Bump O
joekingly
#220083602Friday, June 30, 2017 3:53 AM GMT

Bump Oo
BunnyBoy26
#220083890Friday, June 30, 2017 3:58 AM GMT

GetChildren doesn't take arguments. Also, why are you concatenating the Name with a random floating point number?
joekingly
#220083989Friday, June 30, 2017 3:59 AM GMT

That bunch of junk was me testing around mindlessly, I really just need to know the specific as to how to add to a table, been looking everywhere in wiki and Youtube and haven't found much yet. Do you know how?
joekingly
#220084040Friday, June 30, 2017 4:00 AM GMT

And then of course, after adding to the table, having it so that it doesn't add that same part again.
BunnyBoy26
#220084143Friday, June 30, 2017 4:01 AM GMT

names = {} table.insert(names,selected.Name)
BunnyBoy26
#220084277Friday, June 30, 2017 4:03 AM GMT

..and latepost. names = {} --- local b = true for _,v in next,names do if v == selected.Name then b = false break end end if b then table.insert(names,selected.Name) end
joekingly
#220084291Friday, June 30, 2017 4:03 AM GMT

What about an if statement to check it? Not sure how that would work either with a table.
joekingly
#220084318Friday, June 30, 2017 4:04 AM GMT

Damnit lol didn't see that last one, thanks.
joekingly
#220084469Friday, June 30, 2017 4:06 AM GMT

Hey since you're here and you're knowledgeable can you answer this post too? https://forum.roblox.com/Forum/ShowPost.aspx?PostID=219883507 I fixed the script and advanced it, but I still don't understand what is the causeality for localscript, modulescript, and script working in different play modes and then not working in others.

    of     1