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

The lights not working properly?

Asked by 2 years ago
while true do
    wait(1)
    print("s")
    if game.Lighting.ClockTime > 18 or game.Lighting.ClockTime < 7.5 then
        script.Parent.SpotLight.Enabled = true
        print("b")
    elseif game.Lighting.ClockTime < 18 or game.Lighting.ClockTime > 7.5 then
        script.Parent.SpotLight.Enabled = false
        print("c")
    end
end

the output is s c the clock time 19 the spotlight not opened the script is in workspace ( in a part )

2 answers

Log in to vote
0
Answered by
enes223 327 Moderation Voter
2 years ago

hey you! have you ever heard of enes? if you are in trouble, better call enes!

0
thats not an answer, kinda like an advertisement or something GamerLighting23233 63 — 2y
Ad
Log in to vote
0
Answered by 2 years ago

Maybe try putting the script into ServerScriptService and it may work

Answer this question