--not sure
--local function PlaySound()
--	game.SoundSerivce.SealOrb:Play()
--end
--


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)


