So I am trying to make when a player chooses the choice "No" some part's transparency would get changed and sound would get played, but it isn't working. Any solutions?

script.Parent.DialogChoiceSelected:connect(function(player,dialog)
	if dialog.Name== "No" then
		script.Parent.Parent.Parent.OpenedHatch1.Transparency = 1
		script.Parent.Parent.Parent.ClosedHatch1.Transparency = 0
		script.Parent.Parent.Parent.Part.Transparency = 0
		script.Parent.Parent.Parent.Fire:Play()
		wait(0.6)
		script.Parent.Parent.Parent.Fire:Stop()
 end
end)