literally nothing works except the handle. code:
local debounce = false
local open = false
local ts = game:GetService("TweenService")
local ti = TweenInfo.new(2,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out)
local di = TweenInfo.new(.5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local di2 = TweenInfo.new(2,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out
)
local tg = {CFrame = workspace.Technical.Door.Union.CFrame * CFrame.Angles(0, math.rad(160), 0)}
local tg2 = {CFrame = workspace.Technical.Door.Union.CFrame * CFrame.Angles(0, math.rad(-160), 0)}
local tg3 = {CFrame = workspace.Technical.Door.Door.CFrame * CFrame.Angles(0, math.rad(160), 0)}
local tg4 = {CFrame = workspace.Technical.Door.Door.CFrame * CFrame.Angles(0, math.rad(-160), 0)}
tc = ts:Create(workspace.Technical.Door.Weld, ti, tg)
tc3 = ts:Create(workspace.Technical.Door.Handle.ImportantPart, ti, tg3)
tc4 = ts:Create(workspace.Technical.Door.Handle.ImportantPart, ti, tg4)
script.Parent.ClickDetector.MouseClick:Connect(function()
if open == false and debounce == false then
tc:Play()
tc3:Play()
script.Parent.DoorOpen:Play()
open = true
debounce = true
tc.Completed:Connect(function()
debounce = false
end)
else
if debounce == false then
tc:Play()
script.Parent.DoorClose:Play()
open = false
debounce = true
tc4.Completed:Connect(function()
debounce = false
end)
end
end
end)
the door is cancollide 2 too. they are welded. only the handle tweens and it work only once (for opening) i am so mad. you may see some unused variables because i didn’t script them yet.