ProximityPrompt.Triggered not working?

So I copy & pasted a door system I made before, and the prompt did not fire for some reason. There is no admin or any malicious scripts of any kind in the game, and there isn’t anything to disable the prompt, so why won’t it work? There is absolutely nothing wrong with my script, I tested it with print() to see if it was working, and the only thing it didn’t print was when the prompt was triggered. What is wrong here?

image_2022-10-30_151725804
Each door is located inside a folder, which is located in the basic folder.

local RS = game:GetService("ReplicatedStorage")

local DoorEffectEvent = RS.DoorEffect

for _, Folder in ipairs(script.Parent.Basic:GetChildren()) do
	for _, Door in ipairs(Folder:GetChildren()) do
		local FrontAttachment = Instance.new("Attachment")
		FrontAttachment.Position = Vector3.new(0, 0, -3.5)
		FrontAttachment.Parent = Door.Base
		
		local BackAttachment = Instance.new("Attachment")
		BackAttachment.Position = Vector3.new(0, 0, 3.5)
		BackAttachment.Orientation = Vector3.new(0, 180, 0)
		BackAttachment.Parent = Door.Base
		
		local PromptAttachment = Instance.new("Attachment")
		PromptAttachment.Position = Vector3.new(0, 1, -.75)
		PromptAttachment.Parent = Door.Base
		
		local Prompt = Instance.new("ProximityPrompt")
		Prompt.ObjectText = "Door"
		Prompt.ActionText = "Open"
		Prompt.Style = Enum.ProximityPromptStyle.Custom
		Prompt.Name = "Prompt"
		Prompt.Parent = PromptAttachment
		
		local Value = false
		Prompt.Triggered:Connect(function(Player)
			Prompt.Enabled = false
			
			local Humanoid = Player.Character.Humanoid
			Humanoid.WalkSpeed = 0
			
			DoorEffectEvent:FireClient(Player, true)
			
			task.wait(.25)
			
			if Value then
				Player.Character:PivotTo(CFrame.new(FrontAttachment.WorldPosition) * CFrame.Angles(0, math.rad(FrontAttachment.WorldOrientation.Y), 0))
				PromptAttachment.Position = Vector3.new(0, 1, -.75)
			else
				Player.Character:PivotTo(CFrame.new(BackAttachment.WorldPosition) * CFrame.Angles(0, math.rad(BackAttachment.WorldOrientation.Y), 0))
				PromptAttachment.Position = Vector3.new(0, 1, .75)
			end
			Value = not Value
			
			task.wait(.25)
			
			DoorEffectEvent:FireClient(Player, false)
			Humanoid.WalkSpeed = 16
			
			task.wait(.25)
			
			Prompt.Enabled = true
		end)
	end
end