|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 30 Nov 2012 |
| Total Posts: 24633 |
|
| |
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 16 Feb 2014 12:05 PM |
numerical iterators are also ugly :\ for i,v in pairs() is beautiful ;) |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 01 Nov 2009 |
| Total Posts: 293 |
|
|
| 16 Feb 2014 12:08 PM |
| That looks like an abomination. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 16 Feb 2014 12:09 PM |
| ^ Has to have a non dynamamic variables. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|