It's supposed to check every tenth of a second if it's night (18:00:00 thru 6:15:00) and if each part of a model is either Institutional white or New Yeller. It isn't working and there's no output. Please help!
Here's the script:
while wait(0.1) do
local Children = script.Parent.ZombieSignA:GetChildren()
for i,v in pairs(Children) do
if game.Lighting.TimeOfDay >= "18:00:00" or game.Lighting.TimeOfDay <= "6:15:00" and v.BrickColor == "Institutional white" or v.BrickColor == "New Yeller" then
v.Material = "Neon"
else
v.Material = "Plastic"
end
end
end
Thank you in advance for any help you may provide.

4 comments
Im probaly blind but did u make the v a variable i bet im skimming right over it
for i,v in pairs(Children) do ... you are blind xD
Thought so
I see it now:3