It works but it flies away at incredible speeds. The script uses tweenservice but I really f*ed something up and it does it wrong.
local TweenService = game:GetService("TweenService")
local door1 = script.Parent:WaitForChild("Door1")
local door2 = script.Parent:WaitForChild("Door2")
local tweeningInformation = TweenInfo.new(
0.5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local door1Open = {CFrame = CFrame.new(19.75, 3.75, 83.25)}
local door2Open = {CFrame = CFrame.new(2.75, 3.75, 83.25)}
local door1Close = {CFrame = CFrame.new(14.25, 3.75, 83.25)}
local door2Close = {CFrame = CFrame.new(8.25, 3.75, 83.25)}
local tween1open = TweenService:Create(door1,tweeningInformation,door1Open)
local tween1close = TweenService:Create(door1,tweeningInformation,door1Close)
local tween2open = TweenService:Create(door1,tweeningInformation,door2Open)
local tween2close = TweenService:Create(door1,tweeningInformation,door2Close)
script.Parent.Detector1.Touched:Connect(function(hit)
tween1open:Play()
tween2open:Play()
wait(5)
tween1close:Play()
tween2close:Play()
end)
script.Parent.Detector2.Touched:Connect(function(hit)
tween1open:Play()
tween2open:Play()
wait(5)
tween1close:Play()
tween2close:Play()
end)
Note: No errors, just works in a worng way.

2 comments
just so you know the link you put is blocked
I mean, you could just copy and paste it.