|
| 15 Apr 2014 04:14 PM |
CurrentRange = script.Parent.Light.Range
while true do wait(0.08) light.Range = CurrentRange - 0.10 end
It seems to only subtract the pointlights range by 0.10 |
|
|
| Report Abuse |
|
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 15 Apr 2014 04:16 PM |
while true do wait(.08) light.Range = CurrentRange-.10 CurrentRange = light.Range end |
|
|
| Report Abuse |
|
|
|
| 15 Apr 2014 04:16 PM |
CurrentRange needs to be redefined within the loop.
Example,
CurrentRange = 1 while true do wait(0.08) light.Range = 1 - 0.1 end
Every 0.08 ticks, the calculation (1-0.1) is being made and the Range property is being updated to that, 0.9.
|
|
|
| Report Abuse |
|
|
|
| 15 Apr 2014 04:22 PM |
| Wow, I'm an idiot, thanks for your help! |
|
|
| Report Abuse |
|
|