So.... I am trying to make a sliding door open, but at a certain time. I've tried so many YouTube tutorials, and they don't help me one bit. It only shows it opening when you come upon them. What I am looking for is when a certain amount of time is reached, I want the doors to open. How do I do this?
Use if statements
local timer = 120 while true do if timer == 120 then DoorFunction() end wait(1) end
Timer
would be replaced with whatever number you’re using, DoorFunction
can either be a separate function or lines of code inside the if statement.