--- Nasty Door Script by General_Punctuation ---


function onTouch(hit)
	local plr = hit.Parent:FindFirstChild("Humanoid")
	if plr ~= nil then
		script.Disabled = true
		script.Parent.DoorParts.Union.Transparency = 1
		script.Parent.DoorParts.MainPart.Transparency = 1
		script.Parent.DoorParts.Union.CanCollide = false
		script.Parent.DoorParts.MainPart.CanCollide = false
		wait(1)
		script.Disabled = false
		script.Parent.DoorParts.Union.Transparency = 0
		script.Parent.DoorParts.MainPart.Transparency = 1
		script.Parent.DoorParts.Union.CanCollide = true
		script.Parent.DoorParts.MainPart.CanCollide = true
	end
	end
script.Parent.DoorParts.MainPart.Touched:connect(onTouch)
