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: Script help

Previous Thread :: Next Thread 
DrGorgeousFreeman is not online. DrGorgeousFreeman
Joined: 05 Dec 2012
Total Posts: 109
21 Oct 2017 02:17 PM
So let's say I wanted to manipulate certain objects in different groups which are named the same, how would I go about doing this? So let's say there is a part called "Lightpart" in one group, and all the groups are nammed the same, and have the same part, how would I do this? Thanks
Report Abuse
Brandon5220 is not online. Brandon5220
Joined: 11 Oct 2013
Total Posts: 499
21 Oct 2017 02:18 PM
local group = whateverthegroupis:GetChildren()

for i, v in pairs(group) do
if v.Name == "ObjectName" then
v.Transparency = 0.5
end
end


Report Abuse
VinnieAVlogger is online. VinnieAVlogger
Joined: 02 Sep 2017
Total Posts: 43
21 Oct 2017 02:18 PM
Can you detail it for me more?
Report Abuse
DrGorgeousFreeman is not online. DrGorgeousFreeman
Joined: 05 Dec 2012
Total Posts: 109
21 Oct 2017 02:22 PM
So let's say there is a part called "Lightpart", and this same part is in three different groups called "Stop Light". I want to manipulate all of those parts all at the same time, in one script.
Report Abuse
DrGorgeousFreeman is not online. DrGorgeousFreeman
Joined: 05 Dec 2012
Total Posts: 109
21 Oct 2017 02:25 PM
@Brandon Would that script allow me to put multiple groups in it? even if they have a different name? Thanks.
Report Abuse
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
21 Oct 2017 02:41 PM
u cant do that

u gotta specify which group, and if they're all the same then the script will choose a random one


#code error("you're*")
Report Abuse
DrGorgeousFreeman is not online. DrGorgeousFreeman
Joined: 05 Dec 2012
Total Posts: 109
21 Oct 2017 02:43 PM
But if I specify the groups, can I specify multiple groups in generic for?
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