local D=nil local V=Workspace.Terrain.WorldToCellPreferSolid local x=Workspace.Terrain.GetCell function RayIgnoreCheck(D,k)if D then if D.Transparency>=1 or string.lower(D.Name)=="\119\097\116\101\114"or D.Name=="\069\102\102\101\099\116"or D.Name=="\082\111\099\107\101\116"or D.Name=="\066\117\108\108\101\116"or D.Name=="\072\097\110\100\108\101"or D:IsDescendantOf(MyCharacter)then return true elseif D:IsA("\084\101\114\114\097\105\110")and k then local D=V(Workspace.Terrain,k)if D then local V=x(Workspace.Terrain,D.x,D.y,D.z)if V and V==Enum.CellMaterial.Water then return true end end end end return false end

local FlashHolder = nil


local WorldToCellFunction = Workspace.Terrain.WorldToCellPreferSolid
local GetCellFunction = Workspace.Terrain.GetCell

function RayIgnoreCheck(hit, pos)
	if hit then
		if hit.Transparency >= 1 or string.lower(hit.Name) == "water" or
				hit.Name == "Effect" or hit.Name == "Rocket" or hit.Name == "Bullet" or
				hit.Name == "Handle" or hit:IsDescendantOf(MyCharacter) then
			return true
		elseif hit:IsA('Terrain') and pos then
			local cellPos = WorldToCellFunction(Workspace.Terrain, pos)
			if cellPos then
				local cellMat = GetCellFunction(Workspace.Terrain, cellPos.x, cellPos.y, cellPos.z)
				if cellMat and cellMat == Enum.CellMaterial.Water then
					return true
				end
			end
		end
	end
	return false
end
