local ts = game:GetService("TweenService")
local d = false
local sound = script.Parent.Sound
script.Parent.ProximityPrompt.Triggered:Connect(function(Player)
if d == false then
script.Parent.ProximityPrompt.Enabled = false
d = true
sound:Play()
ts:Create(script.Parent.Parent.Door1,TweenInfo.new(sound.TimeLength,Enum.EasingStyle.Quint,Enum.EasingDirection.Out),{Orientation = script.Parent.Parent.EndDoor.Orientation, Position = script.Parent.Parent.EndDoor.Position}):Play()
wait(3)
sound:Play()
ts:Create(script.Parent.Parent.Door1,TweenInfo.new(sound.TimeLength,Enum.EasingStyle.Quint,Enum.EasingDirection.Out),{Orientation = script.Parent.Parent.ReferDoor.Orientation, Position = script.Parent.Parent.ReferDoor.Position}):Play()
d = false
wait(sound.TimeLength)
script.Parent.ProximityPrompt.Enabled = true
end
end)
Did you change the EndDoor Orientation like I said?
If you started with 180 (same as -180) then the end should be 90 degrees clockwise from the start which is 270 (-90 degrees) and you have it at 90 degrees.
Also don’t you have a debounce built in when you set the ProximityPrompt set to Enabled = false, so why use ‘d’ as a debounce?