local d=true local function F(F)if not d then return end if F.Name=="\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"then local a=game.Players:FindFirstChild(F.Parent.Name)if a then d=false staticCorrupt.Transparency=0 imageLableCorrupt.ImageTransparency=0 wait(4)staticCorrupt.Transparency=1 imageLableCorrupt.ImageTransparency=1 trigger.CanTouch=false wait(10)trigger.CanTouch=true d=true end end end trigger.Touched:Connect(F)


local triggerEnabled = true

local function touched(otherPart)
	if( not triggerEnabled ) then
		return
	end
	if(otherPart.Name == "HumanoidRootPart" ) then
		local player = game.Players:FindFirstChild(otherPart.Parent.Name)
		if(player) then
			triggerEnabled = false
			staticCorrupt.Transparency = 0
			imageLableCorrupt.ImageTransparency = 0
			
		--	PlaySound("")
			wait( 4 )	--How long the Corrupt screen is visable
			
			staticCorrupt.Transparency = 1
			imageLableCorrupt.ImageTransparency = 1

			trigger.CanTouch = false
			wait(10) ---How long before the trigger can be touched agian
			trigger.CanTouch = true
			triggerEnabled = true
		end
	end
end

trigger.Touched:Connect(touched)


