So I was trying to make a door that would be closed on a specific time but it doesn't work with this script, please help?
1 | if game.Lighting.TimeOfDay = = 06 : 00 : 00 then |
2 | script.Parent.CanCollide = true |
3 | end |
Don't use TimeOfDay use this instead:
1 | if game.Lighting.ClockTime > = 6 and game.Lighting.ClockTime < = 7 then |
2 | script.Parent.CanCollide = false |
3 | end |
This will keep the door open for 1 hour