Door doesn't open

Before this everything was fine, it was working, but now suddenly the door stopped opening. I am attaching the script below:

local TweenService = game:GetService("TweenService")

local hinge = script.Parent.Doorframe.Hinge
local prompt = script.Parent.Base.ProximityPrompt

local goalOpen = {}
goalOpen.CFrame = hinge.CFrame * CFrame.Angles(0, math.rad(90), 0)

local goalClose = {}
goalClose.CFrame = hinge.CFrame * CFrame.Angles(0, 0, 0)

local tweenInfo = TweenInfo.new(1)
local tweenOpen = TweenService:Create(hinge, tweenInfo, goalOpen)
local tweenClose = TweenService:Create(hinge, tweenInfo, goalClose)

prompt.Triggered:Connect(function(Player)
	if Player.Team.Name ~= "Police" then
		---
	end
	if Player.Team.Name == "Police" then
	if prompt.ActionText == "Close" then
		tweenClose:Play()
		script.Parent.Base.Sound:Play()
		prompt.ActionText = "Open"
	else
		tweenOpen:Play()
		script.Parent.Base.Sound:Play()
		prompt.ActionText = "Close"
	   end
	end
end)