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: Help needed!

Previous Thread :: Next Thread 
Luckyxero is not online. Luckyxero
Joined: 26 Feb 2014
Total Posts: 505
04 Sep 2016 11:25 AM
how do i choose only parts when i make for i,v in pairs(game.Workspace.Model:GetChildren()) do
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
04 Sep 2016 11:27 AM
IsA("BasePart)
http://wiki.roblox.com/index.php?title=API:Class/Instance/IsA
Report Abuse
Luckyxero is not online. Luckyxero
Joined: 26 Feb 2014
Total Posts: 505
04 Sep 2016 11:38 AM
where do i put IsA("BasePart")
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
04 Sep 2016 11:40 AM
for i,v in pairs(game.Workspace.Model:GetChildren())do if(v.ClassName=="Part")then

end;end
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
04 Sep 2016 11:40 AM
^ no

className is awful for this if you want to get anything that can be welded (all baseparts) without having to do

if v.className == "something"

over 9 times
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
04 Sep 2016 11:41 AM
"only 'Part's" ^
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
04 Sep 2016 11:42 AM
only "Part"s
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
04 Sep 2016 11:42 AM
I would still use IsA and not ClassName though

IsA has more functionality
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
04 Sep 2016 11:49 AM
@thedailyblarg he said "how do i choose only parts when i make for i,v in pairs(game.Workspace.Model:GetChildren()) do" im understanding that by "i want to use 'v as one of evry ######### som like #### ## da workspace which IsA("Part")" :P
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
04 Sep 2016 11:50 AM
so, parts can refer to a part or multiple types of parts

and if he decides that his model has unions or meshes, they will not work :)
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
04 Sep 2016 12:30 PM
well he didn't said that he wants em "to work" :P
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