generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Advanced Scripting, Help!

Previous Thread :: Next Thread 
Kaiser_Krastinov is not online. Kaiser_Krastinov
Joined: 01 Aug 2013
Total Posts: 304
29 Jun 2017 10:38 PM
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?
Report Abuse
Kaiser_Krastinov is not online. Kaiser_Krastinov
Joined: 01 Aug 2013
Total Posts: 304
29 Jun 2017 10:45 PM
Bump O
Report Abuse
Kaiser_Krastinov is not online. Kaiser_Krastinov
Joined: 01 Aug 2013
Total Posts: 304
29 Jun 2017 10:53 PM
Bump Oo
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
29 Jun 2017 10:58 PM
GetChildren doesn't take arguments.
Also, why are you concatenating the Name with a random floating point number?
Report Abuse
Kaiser_Krastinov is not online. Kaiser_Krastinov
Joined: 01 Aug 2013
Total Posts: 304
29 Jun 2017 10:59 PM
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?
Report Abuse
Kaiser_Krastinov is not online. Kaiser_Krastinov
Joined: 01 Aug 2013
Total Posts: 304
29 Jun 2017 11:00 PM
And then of course, after adding to the table, having it so that it doesn't add that same part again.
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
29 Jun 2017 11:01 PM
names = {}
table.insert(names,selected.Name)
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
29 Jun 2017 11:03 PM
..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
Report Abuse
Kaiser_Krastinov is not online. Kaiser_Krastinov
Joined: 01 Aug 2013
Total Posts: 304
29 Jun 2017 11:03 PM
What about an if statement to check it? Not sure how that would work either with a table.
Report Abuse
Kaiser_Krastinov is not online. Kaiser_Krastinov
Joined: 01 Aug 2013
Total Posts: 304
29 Jun 2017 11:04 PM
Damnit lol didn't see that last one, thanks.
Report Abuse
Kaiser_Krastinov is not online. Kaiser_Krastinov
Joined: 01 Aug 2013
Total Posts: 304
29 Jun 2017 11:06 PM
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.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image