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

Scripting Police Lights? [closed]

Asked by
JRTart 0
10 years ago

I am a Person who likes to make police lights but I don't know how to script them in to make them work with a button, Please help.

Closed as Not Constructive by Articulating

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 10 years ago

Use the Click Detector and parent it to the lights

In a Script use this event.

local light = script.Parent
light.Detector.MouseClick:connect(function()
 --Code
end)
Ad
Log in to vote
-1
Answered by 10 years ago

make it change its ambiet light every 1 second using while true do