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

My day night script isn't working, it's inside workspace by the way, why isn't it working? [closed]

Asked by 4 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
local Day = script.Parent:FindFirstChild("Day")
local Night = script.Parent:FindFirstChild("Night")
local Time = script.Parent:FindFirstChild("NewTime")
local ct = game.Lighting.ClockTime

while true do   
    Day.Playing = false
    Time.Playing = true
    Time.Looped = false
    Night.Playing = true
        ct = 12
    print("time changed")
wait(10)
    Day.Playing = true
    Time.Playing = false
    Time.Looped = false
    Night.Playing = false
        ct = 4
    print("time changed")
wait(60)
end

Closed as Non-Descriptive by JesseSong and youtubemasterWOW

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?