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

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

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.

6 comments

0

Uh, what?

0

Well, I want to make a button that turns on two flashing dynamic lights

0

Where's your attempt?

0

Dinoz, He's asking to have both the Blue and Red lights flash chronologically

0

Ah, makes sense.

0

Easy rep all day.

1 answer

✓ Accepted answer

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

1 comment

0

Yes, thanks.

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