So basically, I have a gemstone's light to fade in and fade out on an endless loop, a bit like a glowing effect. However, the script I'm using is not working. Here is the script I am using:
local light = script.Parent --Makes the script parent have a nickname: light
T = true
while T == true do
for i = 0,5,0.1 do
light.Brightness = i
wait(1)
end
for i = 5,0,0.1 do
light.Brightness = i
wait(1)
end
end
The script parent is the Pointlight. Any reasons why this isn't working?

4 comments
Are there any errors in the output? For the second for loop, you don't reduce the increment. So for the second part, it just goes up 5.1, 5.2, 5.3, until it reaches 0 which is never.
Yes, for the second for loop it should be 'for i = 5,0,-0,1'
Still doesn't work. Did I put it in the wrong place?
"for i = 5, 0, -0.1" It was just a typo. I posted the change edited into the script.