Help with script for door

Hi. I’ve adapted a script from a gate and I’m now trying to use it on a door but the ProximityPrompt is now not showing up. The script works fine on my gate. Could it be a bug on studio or is there something wrong with the script?
image

local TweenService = game:GetService("TweenService")
local door = script.Parent
local doorHinge = door.PrimaryPart
local doorOpen = TweenInfo.new()

local doorCFrame = TweenService:Create(doorHinge, doorOpen, {
	CFrame = doorHinge.CFrame * CFrame.Angles(0, math.rad(-100),0)
})

local doorCFrameClosed = TweenService:Create(doorHinge, doorOpen, {
	CFrame = doorHinge.CFrame * CFrame.Angles(0, math.rad(0),0)
})

local ProximityPrompt = script.Parent.ProximityPrompt
local PromptVanish = ProximityPrompt.Enabled == false
local PromptAppear = ProximityPrompt.Enabled == true

ProximityPrompt.Triggered:Connect(function(player)
	if player:IsInGroup(16268704) == true then
	doorCFrame:Play()
	ProximityPrompt.Enabled = false
	wait(10)
	doorCFrameClosed:Play()
	ProximityPrompt.Enabled = true
	elseif player:IsInGroup(11175218) == true then
	doorCFrame:Play()
	ProximityPrompt.Enabled = false
	wait(10)
	doorCFrameClosed:Play()
	ProximityPrompt.Enabled = true	
		
	end
	end)

Any errors in the output window?

local doorHinge = door.PrimaryPart
Do you have the door Model PrimaryPart set to the hinge of the model?

Is any Part of the door Model Anchored?

No errors in the output window.

The primary part is set to Hinge and everything is unanchored except the Hinge.

Are all the Parts of the door Model welded to the Hinge?

Not sure about TweenService or ProximityPrompts since I haven’t used either one.
I searched proximityPrompt doesn’t work in the Search tool up top and found a few posts with the same issue.

Yep. All welded to the Hinge. I’m going to restart Studio and see if that helps!