Introducing qLight!
a remake of Quake 3 Arena / IdTech 3’s Light animation system.
Gone are the days of every light source having a script associated with it and multiple while true do functions!
How does this work?
The qLight interpreter takes an animation string from a preset, and animates a specified light source with said string.
“A” represents the light being turned off, while “Z” represents the light being at maximum brightness. Every letter in between represents a smoother transition between the two. You can have a smoother light transition by having more letters.
For example, DEFGH is smoother than DH. You can have a light reverse by typing the string backwards. For example, DEFGHGFED.
How to setup your lights to work with qLight:
- Select a Light instance (can’t be a part)
- Add the tag “qLightSource”
- Add the Attribute “qLight_Preset”
- Set the qLight_Preset attribute to one of the following presets:
- Alarm
- Candle
- Flicker
- FluorscentFlicker
- Strobe
- SlowFade
Alternatively, you can create your own preset by pasting this into the LightPresets module script in ReplicatedStorage under “qLight” and modifying the animation string & AnimationLength
LightPresets.YOURPRESETNAME = {AnimationLength, 'AnimationString'}