Hello! I need help with making a delete script

Hello! I am currently working on a game that has a hallway with doors and the main point of the game is that these doors will open every 15 secs or 20 secs then respawn (repeat) but the problem is I have no clue on how to script that. I am not asking for a script but for some sort of response to my question! Sorry if this is like a lot but I have no experience with scripting. Ps if this is in the wrong category I’m sorry this is my first post so I am like- clueless on what to do.

1 Like

You can use TweenService to make the doors to open and close. To repeat opening and closing the door, use the While wait() Do method at the start.
A short example:

local TweenService = game:GetService("TweenService")

-- loop
While wait() do

   -- Open and close Door code

end

Since you are a beginner, you can watch youtube tutorials to help you. Here is a video that is related to your goal:

Thank you very much! This will help!

1 Like