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: Dynamic Lighting Enabled Boolean Statements

Previous Thread :: Next Thread 
RayMan36 is not online. RayMan36
Joined: 14 Mar 2012
Total Posts: 273
11 May 2013 06:32 PM
Are The "enabled" statements in PointLights and SpotLights allowed to be edited in a script? I tried, but It seems as if they are not.

Vi Veri Universum Vivus Vici.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
11 May 2013 06:45 PM
Um, yes.
Report Abuse
lombardo2 is not online. lombardo2
Joined: 30 Nov 2008
Total Posts: 1604
11 May 2013 08:16 PM
You probably did

enabled = SpotLight.Enabled

enabled = false

Which is wrong, enabled will hold a copy of SpotLight.Enabled at the time it was defined. SpotLight.Enabled = false would work.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 May 2013 10:11 PM
Yep. It works. @lom I hate that mistake, it's one of the first one's I made.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
11 May 2013 11:36 PM
Yes it works fine,
http://www.roblox.com/--item?id=115319328
Compare the scripts I put in these to yours if you still have trouble.
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
12 May 2013 01:59 AM
Ahue. I remember doing what lombardo just posted when I first started scripting.
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
12 May 2013 02:22 AM
I remember I thought I could rename properties of instances just like I could rename variables when I started.

character.Humanoid.Health = H
character.Humanoid.H=20
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
12 May 2013 03:48 AM
Yeah, me too, Coplox, Quenty.

I remember those times....

greetings hue man
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
12 May 2013 05:35 AM
I did that too. Never understood at that time why it didn't work.

Good 'ol times. Frustrating.
Report Abuse
Raginggrenadethrower is not online. Raginggrenadethrower
Joined: 07 Jul 2012
Total Posts: 101
12 May 2013 06:38 AM
Yeah
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
12 May 2013 06:40 AM
When I was a newbie at Lua, I thought you could do this:

i = troll
1 = numbha
false = true
print(i, 1, false)

and it would work.
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