Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How does dynamic lighting scripts work?

script.Parent.lighting = --I HAVE NO FRICKIN IDEA D:<

Does anybody know how Dynamic lighting scripting works?

1 answer

✓ Accepted answer

Well, you use PointLights, Spotlights, etc

You can change their brightness

script.Parent.Brightness=--number

the Range

script.Parent.Range=--number

if it is on or off

script.Parent.Enabled=true--or false

If it has shadows or not

script.Parent.Shadows=true--or false

or the Color

script.Parent.Color=Color3,new(0/255,0/255,0/255)--You need to divide each by 255 to get the right color

Here is a wiki link to Dynamic Lights: http://wiki.roblox.com/index.php/Glowing_dynamic_lights

SpotLights have a few additonal Properties. Here is a wiki link for SpotLights

http://wiki.roblox.com/index.php?title=SpotLight

1 comment

0

Thanks :D!

This discussion is preserved as it was. New answers, comments, and votes are closed.