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

How does dynamic lighting scripts work?

Asked by 10 years ago
script.Parent.lighting = --I HAVE NO FRICKIN IDEA D:<

Does anybody know how Dynamic lighting scripting works?

1 answer

Log in to vote
1
Answered by 10 years ago

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

0
Thanks :D! DerpTrollark 20 — 10y
Ad

Answer this question