local l=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local s=script.Parent local L=s.AlarmPart local Q=s.Parent local H=Q.SlidingMetalDoor local t=s.KeycardReader local h=t.PrimaryPart local b=h.ProximityPrompt local k=Q.SlidingMetalDoor.Primary local z=H.ClosePos local P=H.OpenPos local v=l:Create(k,TweenInfo.new(8,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{CFrame=z.CFrame})local V=l:Create(k,TweenInfo.new(8,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{CFrame=P.CFrame})


local tws = game:GetService("TweenService")

local buttonSystem = script.Parent
local alarmPart = buttonSystem.AlarmPart
local gate = buttonSystem.Parent
local door = gate.SlidingMetalDoor

local reader = buttonSystem.KeycardReader
local readerPrimary = reader.PrimaryPart

local prompt = readerPrimary.ProximityPrompt

local doorPrimary = gate.SlidingMetalDoor.Primary

local closedPos = door.ClosePos
local openPos = door.OpenPos

local doorCloseTween = tws:Create(doorPrimary,TweenInfo.new(8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut),{CFrame = closedPos.CFrame})
local doorOpenTween = tws:Create(doorPrimary,TweenInfo.new(8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut),{CFrame = openPos.CFrame})