local k=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local w=script.Parent local u=w.AlarmPart local R=w.Parent local y=R.SlidingMetalDoor local r=w.KeycardReader local l=r.PrimaryPart local D=l.ProximityPrompt local P=R.SlidingMetalDoor.Primary local H=y.ClosePos local I=y.OpenPos local G=k:Create(P,TweenInfo.new(8,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{CFrame=H.CFrame})local T=k:Create(P,TweenInfo.new(8,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{CFrame=I.CFrame})
-- // Steven_Scripts, 2022

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 }
)
