/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


2 comments

0

Put this in a loop.

0

While true do?