Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How To Change Brightness Of A PointLight?

Asked by 10 years ago

My script it to change the brightness and range of a pointlight. Here's the script.

--[[Flickering Fire Script
    By AceOfGreat
--]]

--Variables--
    FL = game.Workspace.Forest.FirePit.FireLight

while true do
    FL.Brightness = 1
    FL.Range = 37.5
    wait(1)
    FL.Brightness = 0.75
    FL.Range = 28.125
    wait(1)
    FL.Brightness = 1.125
    FL.Range = 42.1875
    wait(0.5)
    FL.Brightness = 0.9
    FL.Range = 33.75
    wait(1)
    FL.Brightness = 1.05
    FL.Range = 38
end

I get an error at the first FL.Brightness = 1

Please tell me how to make the script work. Thanks.

0
For some reason it pasted oddly on here. Assume it's lines down. AceofGreat 0 — 10y
0
Nevermind, fixed the pasting, anyways, please help. AceofGreat 0 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

What does your output say? (Only answering because commenting is disabled for me.)

Ad

Answer this question