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

How I make a script that make flash two point lights actionated with a button?

Asked by 5 years ago
Edited 5 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

while true do

script.Parent.SpotLight.Enabled = true

wait(.3) script.Parent.SpotLight.Enabled = false wait(.3) end

I'm new at scripting, I've only made this.

0
Uh, what? DinozCreates 1070 — 5y
0
Well, I want to make a button that turns on two flashing dynamic lights Gabrix23 6 — 5y
0
Where's your attempt? Rare_tendo 3000 — 5y
0
Dinoz, He's asking to have both the Blue and Red lights flash chronologically Ziffixture 6913 — 5y
View all comments (2 more)
0
Ah, makes sense. DinozCreates 1070 — 5y
0
Easy rep all day. DinozCreates 1070 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

You'd just reference the second light where i commented. I think this is all you want?

while true do
    script.Parent.SpotLight.Enabled = true
    script.Parent.Spotlight2.Enabled = false -- here
    wait(.3) 
    script.Parent.SpotLight.Enabled = false
    script.Parent.Spotlight2.Enabled = true -- and here
    wait(.3) 
end
0
Yes, thanks. Gabrix23 6 — 5y
Ad

Answer this question