--Raycasting collision

function collision_module.Raycast(wl, from, dir)
	local param = RaycastParams.new()
	param.FilterType = Enum.RaycastFilterType.Whitelist
	param.FilterDescendantsInstances = wl
	param.IgnoreWater = true
	local result = workspace:Raycast(from, dir, param)
	if result then
		return result.Instance, result.Position, result.Normal, result.Material
	else
		return nil, from + dir, nil, Enum.Material.Air
	end
end
