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 » Scripting Helpers
Home Search
 

Re: help pls

Previous Thread :: Next Thread 
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
16 Feb 2014 11:55 AM
game.Workspace.Sphere.AllChildren(?????).TRansperancy=0.7

and for all changing color too

TAKE ONE AND FAV http://www.roblox.com/Golden-Sombrero-name-suggestion-r-helpful-item?id=127917160
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
16 Feb 2014 11:57 AM
local children = game.Workspace.Sphere:GetChildren()

for i = 1, #children do
children[i].Transparency = 0.7
end
Report Abuse
SFOH is not online. SFOH
Joined: 01 Nov 2009
Total Posts: 293
16 Feb 2014 11:59 AM
for i,v in pairs(workspace.Sphere:GetChildren()) do
v.Transparency=0.7
end

I think i deserve a medal for making something better than TheGamer101. Maybe the dumb award of SFOHness
Report Abuse
iTracee is not online. iTracee
Joined: 30 Nov 2012
Total Posts: 24633
16 Feb 2014 12:00 PM
omg hi gamer
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
16 Feb 2014 12:01 PM
what about changing color

TAKE ONE AND FAV http://www.roblox.com/Golden-Sombrero-name-suggestion-r-helpful-item?id=127917160
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
16 Feb 2014 12:02 PM
Better? Why so?
Report Abuse
Gorake is not online. Gorake
Joined: 10 Feb 2014
Total Posts: 219
16 Feb 2014 12:03 PM
Gamer's is more efficient cuz numerical iterators are better :)
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
16 Feb 2014 12:05 PM
@gamer

what do u mean

TAKE ONE AND FAV http://www.roblox.com/Golden-Sombrero-name-suggestion-r-helpful-item?id=127917160
Report Abuse
SFOH is not online. SFOH
Joined: 01 Nov 2009
Total Posts: 293
16 Feb 2014 12:05 PM
Well technically, it's not BETTER, its just cleaner and simpler :P

Also, would you head over to my place and tell me what you think of it? I'm making a space MMORPG and I want to know if its worthwhile continuing.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
16 Feb 2014 12:05 PM
numerical iterators are also ugly :\
for i,v in pairs() is beautiful ;)
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
16 Feb 2014 12:06 PM
for i = 1, #game.Workspace.Sphere:GetChildren() do
game.Workspace.Sphere:GetChildren()[i].Transparency = 0.7
end
Report Abuse
SFOH is not online. SFOH
Joined: 01 Nov 2009
Total Posts: 293
16 Feb 2014 12:08 PM
That looks like an abomination.
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
16 Feb 2014 12:09 PM
what about changing the spheres pieces color

TAKE ONE AND FAV http://www.roblox.com/Golden-Sombrero-name-suggestion-r-helpful-item?id=127917160
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
16 Feb 2014 12:09 PM
I was just showing that you could still make it the same number of lines :<
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
16 Feb 2014 12:09 PM
^ Has to have a non dynamamic variables.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
16 Feb 2014 12:10 PM
Remove the a in the sentence, it bothers me.

Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
16 Feb 2014 12:13 PM
Actually yeah I see what you mean because when you like remove parts then :GetChildren will return different results every time :<<<
Report Abuse
iIikeyou is not online. iIikeyou
Joined: 07 Mar 2012
Total Posts: 1659
16 Feb 2014 12:18 PM
@SFOTH Your script was not better.

In terms of efficiency, TheGamer's example was better; not to mention that I'm sure the reason he decided not to use a generic loop was to help explain it more clearly to the OP.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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