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

Certain point in time of place causes ambience to change and run?

Asked by 6 years ago

/title

I have no clue as to why this won't work, I thought I did it right

What i'm trying to do is, say. If it were. 6:30 AM in game, the ambience would change to "Day" in game.workspace.day (which is a sound)

and if it were 7:55 PM in game, the ambience would change to "Night", which is also a child of game.workspace

if game.Lighting.TimeOfDay ("06:30:00") then
game.Workspace.Day:Play()
if game.Lighting.TimeOfDay ("17:55:00") then
game.Workspace.Day:Pause()
end
end

if game.Lighting.TimeOfDay ("17:55:01") then
game.Workspace.Night:Play()
if game.Lighting.TimeOfDay ("06:29:59") then
game.Workspace.Night:Pause()
end
end


0
Put this in a loop. hiimgoodpack 2009 — 6y
0
While true do? Deploy_Coffee 7 — 6y

Answer this question