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

how do i make a spot light change differnt colors of light slowly?

Asked by 10 years ago

how do i make a spot light change differnt colors of light

1 answer

Log in to vote
0
Answered by
dyler3 1510 Moderation Voter
10 years ago

First, insert a script into the light.

L=script.Parent --Assuming the light is the scripts parent
W1=true
W2=false
while W1==true do
    wait(.01)
    L.Color=Color3.new(L.Color.r-1,L.Color.g-1,L.Color.b-1) --Just experiment with these numbers.
    if L.Color.r<=100 then--Change this to whatever
        W1=false
        W2=true
    end
end

while W2==true do
    wait(.01)
    L.Color=Color3.new(L.Color.r+1,L.Color.g+1,L.Color.b+1) --Make these opposite of #'s before.
    if L.Color.r>=200 then--Change this to whatever
        W1=true
        W2=false
    end
end

This is just a simple script, it changes the same every time, you can change that if you want.

0
thank you dlyer3 imcoollikecool 8 — 10y
0
no prob. dyler3 1510 — 10y
Ad

Answer this question