Advertisement
saturnsolar

Door that opens in 5 minutes | ROBLOX

Apr 16th, 2020
4,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local doorleft = script.Parent:WaitForChild("DoorLeft")
  2. local doorright = script.Parent:WaitForChild("DoorRight")
  3.  
  4. while true do
  5.     wait(5)
  6.     for i = 1,17 do
  7.         doorleft.Position = doorleft.Position - Vector3.new(0,0,0.2)
  8.         doorright.Position = doorright.Position + Vector3.new(0,0,0.2)
  9.         wait()
  10.     end
  11.     wait(3)
  12.     for i = 1,17 do
  13.         doorleft.Position = doorleft.Position + Vector3.new(0,0,0.2)
  14.         doorright.Position = doorright.Position - Vector3.new(0,0,0.2)
  15.         wait()
  16.     end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement