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

Scripting Police Lights?

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.

2 answers

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)

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

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