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
 

How to inject spotlights into body?

Previous Thread :: Next Thread 
HMAX12 is not online. HMAX12
Joined: 25 Jul 2009
Total Posts: 32693
31 Dec 2013 06:00 PM
halp
Report Abuse
cntkillme is not online. 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 is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
31 Dec 2013 06:01 PM
[ Content Deleted ]
Report Abuse
maxomega3 is not online. 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 is not online. 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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
31 Dec 2013 06:08 PM
If you mean faster to type, then yes.
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