HMAX12
|
  |
| Joined: 25 Jul 2009 |
| Total Posts: 32693 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 31 Dec 2013 06:01 PM |
"inject" eww
local spotLight = Instance.new("SpotLight") spotLight.Color = Color3.new(1, 0, 0) spotLight.Angle = 90 spotLight.Range = 60 spotLight.Brightness = 10 spotLight.Parent = workspace.HMAX12.Torso |
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 31 Dec 2013 06:03 PM |
Madified's method is more efficient, because you don't need the last line of cnt's script if you do it that way.
But in any case, you don't need game. when referring to the Workspace. It's a shortcut that I wish they'd implement into Lighting, too :c |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 31 Dec 2013 06:06 PM |
^ You do not know what efficient means, do you? No, they are the same. Adding it to the optional second argument of Instance.new is still going to parent it.
In fact, it's less efficient in the sense of readability and usability since parenting then changing the properties is stupid if you lag and you will see it change. |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 31 Dec 2013 06:07 PM |
| Huh, I didn't know that. But by efficient, I just meant faster and easier to type :P |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 31 Dec 2013 06:08 PM |
| If you mean faster to type, then yes. |
|
|
| Report Abuse |
|
|