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

Previous Thread :: Next Thread 
VibrantDragon is not online. VibrantDragon
Joined: 20 Sep 2013
Total Posts: 804
20 Feb 2015 01:30 PM
I have 2 objects with the same name in Workspace. How can I refer to both of them in a script.
Report Abuse
VibrantDragon is not online. VibrantDragon
Joined: 20 Sep 2013
Total Posts: 804
20 Feb 2015 01:35 PM
bump
Report Abuse
kepz is not online. kepz
Joined: 18 Jul 2012
Total Posts: 671
20 Feb 2015 02:25 PM
for i, v in pairs(game.Workspace:GetChildren()) do
if v.Name == "SameNameObjects" then
-- do stuff
end
end
Report Abuse
badguy1233 is not online. badguy1233
Joined: 23 Jul 2009
Total Posts: 885
20 Feb 2015 02:25 PM
Make then two different names.
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