You can get the Turn-Lights-On script by using the script below. Careful, it’s in Pseudo code, so don’t copy and paste without editing it.
Lighting:PropertyChangedSignal"ClockTime":Connect(function()
if Lighting:GetMinutesAfterMidnight() >= 18 * 60 or Lighting:GetMinutesAfterMidnight() < 6 * 60 then
Lights(true)
else
Lights(false)
end
end)
The point of programming is to find your own solution to stuff; There are a lot of ways to get a single thing done. That’s why I never send ‘real’ or ‘full’ scripts; only parts of it.
If people will send you a specific solution, you won’t really learn to code stuff at your own style.
With that said, here’s the script;
Spoiler: Full Script, aka spoonfeeding
local Lighting = game:GetService("Lighting");
function Lights(active)
local color = (active and BrickColor.new(Color3.new(1,1,0)) or BrickColor.new(Color3.new(0,0,0)));
lightPart.Color = color
end
Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
if Lighting:GetMinutesAfterMidnight() >= 18 * 60 or Lighting:GetMinutesAfterMidnight() < 6 * 60 then
Lights(true)
else
Lights(false)
end
end)
Thanks you alot, I really appreciate it.
Yes, I know… It’s a personal issue I have to overcome, I’m just very lazy, and I need to figure out a way to get over it.