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 |
|
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 12 May 2013 01:59 AM |
| Ahue. I remember doing what lombardo just posted when I first started scripting. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|