--------------------------------------------------------------------------------------------------------------------------------------


function PressH(key)				
	if (key== "h") then
if (Activate==false) then
	for _,v in ipairs(game.Players.LocalPlayer.Character.Helmet:GetChildren()) do
  		if v.ClassName == "Part" or v.ClassName=="UnionOperation" or v.ClassName=="WedgePart" then
	    game.Players.LocalPlayer.Character.Helmet.LS.Light.Enabled=false  
	    game.Players.LocalPlayer.Character.Helmet.Flashlight.Material = "SmoothPlastic" 
			v.Transparency=1
     		end
		end	
	for _,v in ipairs(game.Players.LocalPlayer.Character:GetChildren()) do
  		if v.ClassName == "Hat"   then     
			v.Handle.Transparency=0
     		end
	end	
	game.Players.LocalPlayer.Character.Head.Transparency = 0
Activate = true
elseif (Activate==true) then
	for _,v in ipairs(game.Players.LocalPlayer.Character:GetChildren()) do
  		if v.ClassName == "Hat"   then     
			v.Handle.Transparency=1
     		end
		end		
	for _,v in ipairs(game.Players.LocalPlayer.Character.Helmet:GetChildren()) do
  		if v.ClassName == "Part" or v.ClassName=="UnionOperation" or v.ClassName=="WedgePart"  then     
			v.Transparency=0
     		end
	    end	
game.Players.LocalPlayer.Character.Helmet.Middle.Transparency=1
game.Players.LocalPlayer.Character.Head.Transparency = 1
	Activate=false
		end
	end
end
Mouse.KeyDown:connect(PressH)