So the basis of my Script is for the parent Part to disappear at a certain time of day (I have another script running a day and night cycle).
Here's the Script:
for i = game.Lighting:GetMinutesAfterMidnight(), 7*60 do script.Parent.Transparency = 1 script.Parent.CanCollide = false wait(0.1) end if game.Lighting.TimeOfDay == 7*61 then script.Parent.Transparency = 0 script.Parent.CanCollide = true end
The "for" Statement works but the "if" Statement doesn't return anything (not even an error). I'm assuming it's already ran before the game has reached the correct time of day, and I'm also assuming that a "wait()" function is also not gonna work for a real game.