Basically, I have this script in a double door. These doors are supposed to slide directly out. (left and right) and one of them does some kind of weird flip the first time it moves.
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(-2.549, 3.24, -99.755)}
local door2Open = {CFrame = CFrame.new(-12.269, 3.24, -99.755)}
local door1Close = {CFrame = CFrame.new(-5.688, 3.24, -99.755)}
local door2Close = {CFrame = CFrame.new(-9.165, 3.24, -99.755)}
local tween1open = TweenService:Create(door1,tweeningInformation,door1Open)
local tween1close = TweenService:Create(door1,tweeningInformation,door1Close)
local tween2open = TweenService:Create(door2,tweeningInformation,door2Open)
local tween2close = TweenService:Create(door2,tweeningInformation,door2Close)
script.Parent.KeycardReader1.Touched:Connect(function(hit)
tween1open:Play()
tween2open:Play()
wait(2)
tween1close:Play()
tween2close:Play()
end)
script.Parent.KeycardReader2.Touched:Connect(function(hit)
tween1open:Play()
tween2open:Play()
wait(2)
tween1close:Play()
tween2close:Play()
end)

7 comments
One second, the link is broken.
Link fixed.
The link don’t work for me, could you try uploading it to YTL
YouTube?
I fixed the link. Does it still not work?
I'll upload it.
Fixed the link again. It will work now. I changed the link to a youtube video link.