Here's the script:
door = script.Parent.Parent.Parent.Door
local TweenService = game:GetService("TweenService")
local part = script.Parent
local tweenInfo = TweenInfo.new(4.328,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local doorOpen = {CFrame = CFrame.new(2.267, 26.5, -238.952)}
local doorClose = {CFrame = CFrame.new(2.267, 18.5, -238.952)}
local Open1 = TweenService:Create(door,tweenInfo,doorOpen)
local Close1 = TweenService:Create(door,tweenInfo,doorClose)
script.Parent.MouseClick:connect(function()
if open == false then
Open1:Play()
script.Parent.Parent.Sound:Play()
wait(6)
open = true
else
Close1:Play()
script.Parent.Parent.Sound:Play()
wait(6)
open = false
end
end)```