Starting 2/3, all of my new CAD models will only be uploaded to Printables.
I have spent quite a lot of time building city games in roblox, and one of the most annoying things to get to work are always traffic lights. Free models can only go so far, which in this case isn't far at all, because most traffic light free models either have lazy signaling and/or lack of flexibility. I decided to spend some time designing my own traffic light preset that can easily be adapted to fit almost any situation in a city.
This particular light takes modifiable constants, in the form of light phase lengths, an amber buffer, light colors, brigntness, range, and the individual lights, and operates the light system based off of those parameters. All of the main parameters, as well as the intersection design, are easily modifiable.
LIGHT_PHASE_LENGTHS controls how long each light phase is, with each value in the array corresponding to the length of it's respective phase.
AMBER_BUFFER cuts into the time in the light phase, and controls the time the amber light will be active before the next phase starts.
BRIGHTNESS and RANGE control how bright the glowing part of the lights are, and how far they can be seen from. These only modify the physical appearance of the light, not the function.
RED, AMBER, and GREEN each control the color of each of their respective lights. These only modify the physical appearance of the light, not the function.